html - 如何使用 Foundation 移动和替换下拉菜单中的箭头?

标签 html css zurb-foundation

出现默认下拉菜单项时,右侧有一个默认箭头。我希望我的自定义箭头(图像)出现在底部。为此,我需要修改 CSS 的哪一部分?

最佳答案

如果您在 Foundation 中使用经典的顶部栏导航,您应该具有以下 css。只需替换 position: absolute; 并调整您的边距。

.top-bar-section .has-dropdown > a::after {
   content: "";
   display: block;
   width: 0;
   height: 0;
   border: inset 5px;
   border-color: rgba(255, 255, 255, 0.4) transparent transparent transparent;
   border-top-style: solid;
   margin-top: -2.5px; /* Adjust to your need */
   top: 22.5px; /* Remove it */
   margin-right: 15px; /* Adjust to your need */
   position: absolute; /* Remove it */
   right: 0; /* Remove it */
}

关于html - 如何使用 Foundation 移动和替换下拉菜单中的箭头?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26488504/

相关文章:

javascript - JSON.stringify 方法中的循环引用异常

html - 背景颜色不改变错误

javascript - 使用 javascript 和 css 修复元素到达屏幕顶部时的问题

HTML 背景附件属性在 IE8 中不起作用

html - 链接在 iOS 设备上被忽略

javascript - 打开图(og :) meta tags not working in my website

css - 如何创建灵活的圆 Angular ?

html - 如何防止在 Bootstrap 中覆盖 div

html - 在 Zurb Foundation 6 中跨列均匀分布单元格

jquery - 显示独立模块未按预期工作