Vik*_*tor 1 html javascript css jquery
嗨,我正在为客户端使用CSS菜单导航,但是菜单显示"子弹" - 我见过其他人建议使用list-style:none; 我尝试将其添加到此CSS样式表中的每个元素都无济于事.客户想要完全移除子弹或改变颜色.到目前为止,我没有成功取出子弹.
有没有人对下面的'styles.css'进行了修改,我们可以用它来修改css菜单,这样你就看不到子弹了?
@import url(http://fonts.googleapis.com/css?family=Josefin+Sans);
#cssmenu {
background: none;
width: auto;
margin-top:-15px;
}
#cssmenu ul {
list-style: none;
margin: 0;
padding: 0;
line-height: 1;
display: block;
zoom: 1;
}
#cssmenu ul:after {
content: " ";
display: block;
font-size: 0;
height: 0;
clear: both;
visibility: hidden;
list-style: none;
}
#cssmenu ul li {
display: inline-block;
padding: 0;
margin: 0;
list-style: none;
}
#cssmenu.align-right ul li {
float: right;
}
#cssmenu.align-center ul {
text-align: center;
}
#cssmenu ul li a {
list-style: none;
color: #d6d6da;
text-decoration: none;
display: block;
padding: 15px 20px;
font-family: 'Josefin Sans', sans-serif;
font-weight: 50;
font-size: 13px;
position: relative;
letter-spacing: .5px;
-webkit-transition: color .25s;
-moz-transition: color .25s;
-ms-transition: color .25s;
-o-transition: color .25s;
transition: color .25s;
}
#cssmenu ul li a:hover {
color: #ff893f;
}
#cssmenu ul li a:hover:before {
width: 100%;
}
#cssmenu ul li a:after {
content: "";
display: block;
position: absolute;
right: -3px;
top: 19px;
height: 6px;
width: 6px;
background: #ffffff;
opacity: .5;
list-style: none;
}
#cssmenu ul li a:before {
content: "";
display: block;
position: absolute;
left: 0;
bottom: 0;
height: 3px;
width: 0;
background: #333333;
-webkit-transition: width .25s;
-moz-transition: width .25s;
-ms-transition: width .25s;
-o-transition: width .25s;
transition: width .25s;
}
#cssmenu ul li.last > a:after,
#cssmenu ul li:last-child > a:after {
display: none;
}
#cssmenu ul li.active a {
color: #0076c0;
}
#cssmenu ul li.active a:before {
width: 100%;
}
#cssmenu.align-right li.last > a:after,
#cssmenu.align-right li:last-child > a:after {
display: block;
}
#cssmenu.align-right li:first-child a:after {
display: none;
}
@media screen and (max-width: 768px) {
#cssmenu ul li {
float: none;
display: block;
}
#cssmenu ul li a {
width: 100%;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
border-bottom: 1px solid #000000;
list-style: none;
}
#cssmenu ul li.last > a,
#cssmenu ul li:last-child > a {
border: 0;
}
#cssmenu ul li a:after {
display: none;
}
#cssmenu ul li a:before {
display: none;
}
}
Run Code Online (Sandbox Code Playgroud)
您需要删除以下规则:
#cssmenu ul li a:after {
content: "";
display: block;
position: absolute;
right: -3px;
top: 19px;
height: 6px;
width: 6px;
background: none repeat scroll 0% 0% #FFF;
opacity: 0.5;
list-style: outside none none;
}
Run Code Online (Sandbox Code Playgroud)

| 归档时间: |
|
| 查看次数: |
801 次 |
| 最近记录: |