我在菜单项旁边有一个三角形,使用纯CSS。它可以在Internet Explorer和Firefox中完美地工作,但Chrome会收获箭头的底部。这里的问题的一些截图:菜单三角形/箭头问题(纯CSS)
下面是我使用的CSS:
/*menu arrows */
.arrowsprite {
width:0px;
height:0px;
border-left:5px solid transparent;
border-right:5px solid transparent;
border-top:5px solid #444444;
font-size:0px;
line-height:0px;
top:-2px;
position:relative;
}
.arrowspriteselected {
width:0px;
height:0px;
border-left:5px solid transparent;
border-right:5px solid transparent;
border-top:5px solid #fff;
font-size:0px;
line-height:0px;
top:-2px;
position:relative;
}
.leftish li:hover .arrowsprite {
border-top:5px solid #444444;
}
.leftish li:hover .arrowspriteselected {
border-top:5px solid #444444;
}
的HTML是:
<li>Wanted <span class="arrowsprite"></span></li>
不任何人都可以看到我的任何明显的问题CSS?
我知道这个问题已经得到解答,但是您是否考虑过使用Unicode字符(U + 25BC黑色向下指向的三角形或U + 25BE黑色向下指向的小三角形)? –