尝试对箭头定位进行排序时菜单跳转
我一直在开发一个新菜单,而且已经快到了,但是箭头现在不在悬停区域中,当我尝试使用填充等对其进行排序时,它会使菜单在悬停时跳转。
http://www.streetstyles4all.co.uk/test4.html
这是当前的代码:
CSS:
span.arrowdown {
border-color: #307AEF transparent transparent;
border-style: solid;
border-width: 7px;
left: 7px;
position: relative;
top: 19px;
z-index: 100;
}
#menu li.roundcorners:hover {
background: none repeat scroll 0 0 #E4E4E4;
border-radius: 5px 5px 5px 5px;
z-index: 20;
padding-bottom:0px;
}
#menu li.roundcorners:hover a
{
}
#menu li {
border: medium none;
float: left;
margin-left: 14px;
margin-top: 3px;
padding: 5px 13px 0px;
position: relative;
z-index: 5;
}
#menu li:hover
{
background: none repeat scroll 0 0 #E4E4E4;
border-radius: 5px 5px 0 0;
z-index: 5;
}
#menu li a{
font-family:Arial, Helvetica, sans-serif;
font-size:17px;
color:#eeeeee;
display:block;
text-decoration:none;
padding-bottom: 6px;
padding-top: 1px;
position:relative; }
HTML:
<a href="classes.html" class="drop" title="Street Dance Classes">
<strong>Shop</strong><span class="arrowdown"></span>
</a>
任何人都可以帮忙吗?
I have been working on a new menu and I'm almost there, but the arrow is now not in the hovered area, and when I try and sort it with padding etc it makes the menu jump around when hovered.
http://www.streetstyles4all.co.uk/test4.html
Here is the current code:
CSS:
span.arrowdown {
border-color: #307AEF transparent transparent;
border-style: solid;
border-width: 7px;
left: 7px;
position: relative;
top: 19px;
z-index: 100;
}
#menu li.roundcorners:hover {
background: none repeat scroll 0 0 #E4E4E4;
border-radius: 5px 5px 5px 5px;
z-index: 20;
padding-bottom:0px;
}
#menu li.roundcorners:hover a
{
}
#menu li {
border: medium none;
float: left;
margin-left: 14px;
margin-top: 3px;
padding: 5px 13px 0px;
position: relative;
z-index: 5;
}
#menu li:hover
{
background: none repeat scroll 0 0 #E4E4E4;
border-radius: 5px 5px 0 0;
z-index: 5;
}
#menu li a{
font-family:Arial, Helvetica, sans-serif;
font-size:17px;
color:#eeeeee;
display:block;
text-decoration:none;
padding-bottom: 6px;
padding-top: 1px;
position:relative; }
HTML:
<a href="classes.html" class="drop" title="Street Dance Classes">
<strong>Shop</strong><span class="arrowdown"></span>
</a>
Can anyone help?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你可以试试这个,但我不知道在IE7下是否有效。
You can try this, but I don't know, if it works in IE7.