简体   繁体   English

PHP Joomla从菜单项的右移到左移菜单分隔符

[英]PHP Joomla moving a menu separator from right to left of the menu item

I'd like to move the menu separator ( look here ) currently just after (to the right) of the menu item "Sometitle" to just before (to the left) it, making a separator just after the menu item "Donate" and just before the menu item "Sometitle". 我想将当前菜单项“ Sometitle”之后(右侧)的菜单分隔符( 在此处查看 )移动到菜单项“ Donate”之后的左侧(左侧),并在菜单项“ Donate”之后进行分隔。就在菜单项“ Sometitle”之前。 Is this accomplishable via the Joomla software,and if so how do I go about doing it, or do I have to accomplish this myself (via JavaScript/CSS). 这可以通过Joomla软件完成吗?如果可以,我该如何做?还是必须自己(通过JavaScript / CSS)来完成? If it's only doable via JavaScript/CSS,any tips would be appreciated. 如果只能通过JavaScript / CSS进行操作,那么任何提示都将不胜感激。

Thanks! 谢谢!

Is 'Some Title' a specific module or is part of the menu? “ Some Title”是特定模块还是菜单的一部分? I would make a second menu module for that item and instead of applying that margin you can put 'float:right' to the module div so you don't waste all that space. 我将为该项目创建第二个菜单模块,而不是应用该边距,而可以在模块div中添加“ float:right”,这样就不会浪费所有空间。

Maybe you can make a 'dummy' menu item before 'Some Title'. 也许您可以在“某些标题”之前创建一个“虚拟”菜单项。 Make it invisible with css so it shows only the separator. 使用CSS使它不可见,因此仅显示分隔符。 That's one option, I should take a look at the actual css code and html layout to give you more ideas. 那是一个选择,我应该看看实际的CSS代码和html布局,以便给您更多的想法。 But definitely you can solve this with css. 但绝对可以使用CSS解决此问题。

Joomla way: Joomla方式:

Create another menu for that item (and remove it from the left menu), use the same style for the <li> items in both menus (of course, place each <ul> according to your design). 为该项目创建另一个菜单(并将其从左侧菜单中删除),对两个菜单中的<li>项目使用相同的样式(当然,根据您的设计放置每个<ul> )。

CSS way: CSS方式:

Set the 'Sometitle' item like this (replace the X for the right item id): 像这样设置“ Sometitle”项(将X替换为正确的项ID):

.menuClass .itemX {background-position-x:0%;}

JS way: JS方式:

Set the css properties as above. 如上所述设置css属性。

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

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