如何更改Superfish菜单上箭头的样式?我找不到任何样式,但我的布局样式表并没有定义箭头。
第二级菜单有sf-arrows类,它显示向下箭头与右箭头类似第三级。 如何将第二级箭头样式更改为右箭头?
HTML:
<ul class="sf-menu fixed" id="menu">
<li class="current">
<a href="index.html">Home</a>
</li>
<li>
<a href="#">About us</a>
</li>
<li class="dropdown">
<a href="#">Courses</a>
<ul class="sf-arrows">
<li class="dropdown">
<a href="/courses">Classroom Courses</a>
<ul>
<li class="dropdown wide">
<a href="/courses/CIC/">Certified Insurance Counselors (CIC)</a>
<ul>
<li><a href="/courses/CIC/cic_personal_lines">CIC Personal Lines</a></li>
<li><a href="/courses/CIC/commercial_casualty11">CIC Commercial Casualty</a></li>
<li><a href="/courses/CIC/commercial_property">CIC Commercial Property</a></li>
<li><a href="/courses/CIC/life_and_health">CIC Life & Health</a></li>
<li><a href="/courses/CIC/agency_management">CIC Agency Management</a></li>
</ul>
</li>
<!-- MANY MORE ITEMS HERE -->
</ul>
</li>
<li class="dropdown">
<a href="#">Online Courses</a>
<ul>
<li class="wide"><a href="/online_courses/self_study/self_study">Self-Paced Online Courses</a></li>
<li class="wide"><a href="/online_courses/online_classroom">Instructor-Led Online Courses</a></li>
</ul>
</li>
<li>
<a href="#">In-House Courses</a>
</li>
</ul>
</li>
<li>
<a href="#">Schedule or Register</a>
</li>
答案 0 :(得分:0)
<body>
The content of the body element is displayed in your browser.
<ul>
<li><a href="/courses/CIC/cic_personal_lines">CIC Personal Lines</a><ul>
<li><a href="/courses/CIC/cic_personal_lines">CIC Personal Lines</a><ul>
<li><a href="/courses/CIC/cic_personal_lines">CIC Personal Lines</a></li>
<li><a href="/courses/CIC/commercial_casualty11">CIC Commercial
Casualty</a></li>
<li><a href="/courses/CIC/commercial_property">CIC Commercial
Property</a></li>
<li><a href="/courses/CIC/life_and_health">CIC Life & Health</a></li>
<li><a href="/courses/CIC/agency_management">CIC Agency Management</a>
</li>
</ul></li>
<li><a href="/courses/CIC/commercial_casualty11">CIC Commercial
Casualty</a></li>
<li><a href="/courses/CIC/commercial_property">CIC Commercial
Property</a></li>
<li><a href="/courses/CIC/life_and_health">CIC Life & Health</a></li>
<li><a href="/courses/CIC/agency_management">CIC Agency Management</a>
</li>
</ul></li>
<li><a href="/courses/CIC/commercial_casualty11">CIC Commercial
Casualty</a></li>
<li><a href="/courses/CIC/commercial_property">CIC Commercial
Property</a></li>
<li><a href="/courses/CIC/life_and_health">CIC Life & Health</a></li>
<li><a href="/courses/CIC/agency_management">CIC Agency Management</a>
</li>
</ul>
</body>
</html>
答案 1 :(得分:0)
我在Superfish v 1.7.5上测试了这个。
此箭头实际上是使用不透明度的边框。
您只需从左侧而不是从顶部开始。
将你的superfish.css替换为border-left的所有border-top。 例子:
border-top: 1px solid rgba(255,255,255,.5);
必须替换为:
border-left: 1px solid rgba(255,255,255,.5);
另外
border-top-color: rgba(255,255,255,.5);
必须替换为:
border-left-color: rgba(255,255,255,.5);
我相信这会改变箭头的方向。我在这里测试过,显然它已经有效了。
编辑:
我在这里改变选择器以使其工作:
.sf-menu a {
border-top: 1px solid #dFeEFF; /* fallback colour must use full shorthand */
border-top: 1px solid rgba(255,255,255,.5);
}
.sf-arrows .sf-with-ul:after {
border-top-color: #dFeEFF; /* edit this to suit design (no rgba in IE8) */
border-top-color: rgba(255,255,255,.5);
}
.sf-arrows > .sfHover > .sf-with-ul:after {
border-top-color: white; /* IE8 fallback colour */
}