设置 YUI Split 按钮的样式

发布于 2024-07-24 23:59:23 字数 317 浏览 1 评论 0原文

我想对左侧使用拆分按钮 侧面菜单。 我尝试添加以下课程。

<STYLE TYPE="text/css"> .catbutton { display: block; } </STYLE>

按钮的宽度正确,但菜单箭头占据了部分 可变宽度。 不仅丑陋,而且菜单激活部分位于 正确的位置在最右边。 单击浮动的三角形 中间没有起作用。

我想也许我可以使用 JS 在按钮后面添加一个
元素。 我没有任何运气。

感谢帮助。

I want to use split buttons for a left
side menu. I tried adding the class following.

<STYLE TYPE="text/css"> .catbutton { display: block; } </STYLE>

The buttons were the right width but the menu arrow was the section taking up
the variable width. Not only was it ugly but the menu activation section was in
the correct place on the far right. Clicking on the triangle which was floating
in the middle did not work.

I was thinking that maybe I could add a <br/> element after the button using JS. I am not having any luck.

Help is appreciated.

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

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

发布评论

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

评论(1

眸中客 2024-07-31 23:59:23

尝试添加 width: 95%; 到按钮样式?

Try adding width: 95%; to the button style?

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