下拉菜单和圆角
与下拉菜单上的圆角相关的快速查询。
您可以在此处查看示例:http://jsfiddle.net/tomperkins/C5mTf/
该问题与右侧的“帮助”按钮有关。我已指定菜单项在悬停时具有方形底角,这很好。
问题是,我无法让“帮助”按钮的下角变成圆角?
让我感到困惑,非常感谢任何帮助。
提前致谢,
汤姆·帕金斯
A quick query relating to rounded corners on a dropdown menu.
You can see a sample here: http://jsfiddle.net/tomperkins/C5mTf/
The question relates to the 'Help' button on the right hand side. I've specified for the menu items to have square bottom corners when on hover, which is fine.
The trouble is, I can't get the 'Help' button to have rounded corners on the lower corners?
Got me stumpted, any help really appreciated.
Thanks in advance,
Tom Perkins
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的问题是这个选择器:
它选择任何具有
id="help"
的元素,该元素是悬停的 ul 的后代。由于帮助菜单本身就是 ul,所以这是行不通的。将选择器切换为:
解决了问题。在这里查看:http://jsfiddle.net/C5mTf/1
Your problem is this selector:
This selects any element with
id="help"
that is a descendant of a ul being hovered. Since the help menu is itself that ul, this doesn't work.Switching the selector instead to:
fixes the problem. See it here: http://jsfiddle.net/C5mTf/1