简体   繁体   English

javascript Accordian菜单如何将加号从右侧移动到左侧

[英]javascript accordian menu how to move plus symbol to left side from right side

I am using an accordian menu from the url below. 我正在使用下面网址中的手风琴菜单。 The menu has plus symbol on the right side. 菜单的右侧有加号。 I would like to move the plus symbole to the left side but I can't figure out how to do that. 我想将加号符号移到左侧,但我不知道该怎么做。

Any advice, will be greatly appreciated. 任何建议,将不胜感激。 Dynamic Drive accordian menu 动态驱动手风琴菜单

Add the following styles: 添加以下样式:

.glossymenu a.menuitem .statusicon {
    left: 5px;
    right: auto;
}

a.menuitem.submenuheader {
    padding-left: 24px;
}

Then it will be on the left side instead of being on the right side. 然后它将在左侧,而不是在右侧。 The .statusicon is already absolutely positioned within the element, so all you have to do is reposition it to be 5px from the left side instead of its current default, 5px from the right side. .statusicon已经完全定位在元素中,因此您要做的就是将其重新定位为左侧5像素,而不是当前默认位置右侧5像素。 The padding is to create a space for the icon. 填充是为了为图标创建一个空间。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM