阅读:3087回复:2
如何去掉右键菜单里最下面多余的分割线?
我只知道用menuitem[id="xxx"] + menuseparator{ display: none !important; } 能隐藏id是xxx的菜单下面的分割线。可是用了menueditor后,菜单id会根据文本、链接、图片不同而变化。有什么方法可以智能判断如果最后一个菜单下面有分割线,就把分割线去掉?
|
|
|
1楼#
发布于:2011-03-13 13:35
既然知道css的用法,为什么不用css隐藏菜单,比用menueditor效果好,没有延迟;
这个判断应该css做不到。 |
|
2楼#
发布于:2011-03-13 13:35
menuitem:last-child + menuseparator{ display: none !important; }
|
|