如何在 Sitefinity radmenu 中均匀分布导航按钮

发布于 2024-09-19 08:51:13 字数 203 浏览 4 评论 0原文

我有一个 Radmenu,其中有 6 个按钮,在水平菜单中它们之间的间距需要相等。我已经设法使用百分比值来实现这一点,但是如果有人决定添加另一个菜单按钮怎么办?

有没有办法将我的 UL 菜单对齐在包装 DIV 的中间,然后均匀地间隔按钮。

最重要的是,左按钮需要向左浮动,rmLast按钮需要向右浮动,然后按钮需要均匀分布。

非常感谢! 詹姆斯

I have a Radmenu which has 6 buttons in it which need to have equal spacing between them in my horizontal menu. I have managed to get this right using a percentage value but what if someone decides to add another menu button?

Is there a way of aligning my UL menu in the middle of my wrapping DIV and then spacing the buttons equally.

To top this off, the left button needs to be floated left and the rmLast button needs to be floated right, then the buttons needs to be distributed evenly.

Many thanks!
James

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

┼── 2024-09-26 08:51:32

这是可以用表格在大约 20 秒内解决的问题之一。

无论如何,以下链接可能会有所帮助:

http://joomlapanel.com/joomla-article/joomla-tutorial/247-fixed-a-liquid-columns-with-css-a-jquery-.html

这种技术使用样式表和 javascript (jQuery) 的组合来完成此操作。

This is one of those problems that could be solved with a table in about 20 seconds.

Anyway, the following link might help:

http://joomlapanel.com/joomla-article/joomla-tutorial/247-fixed-a-liquid-columns-with-css-a-jquery-.html

This technique uses a combination or stylesheets and javascript (jQuery) to accomplish this.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文