Superfish下拉位置
有谁知道 superfish 的下拉 UL 是否可以有不同的位置?我有一个水平导航栏,在左侧,我希望下拉菜单与按钮的左侧对齐,在右侧,我希望它们与按钮的右侧对齐。
Does anyone know if it is possible to have different positions for the dropdown UL's for superfish? I have a horizontal navigation bar, on the left side I would like the dropdowns to align to the left of the button, on the right side I would like them to align to the right of the button.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以向左侧和右侧的项目添加一个类(例如 .leftItem 或 .rightItem),然后定位下拉列表并使用 css 定位它吗?
如:
.leftItem .dropdownClass {left:0px;}
.rightItem .dropdownClass {right:0px;}
Can you add a class to the items on the left side and right side such as .leftItem or .rightItem then target the dropdown and position it with css?
Such as:
.leftItem .dropdownClass {left:0px;}
.rightItem .dropdownClass {right:0px;}