简体   繁体   English

Joomla - 如何高亮显示活动页面的菜单项

[英]Joomla - how to hightlight the menu item for active page

How do you highlight the menu item of the active page? 如何突出显示活动页面的菜单项?

Thanks! 谢谢! Steph 斯蒂芬

Please use following Css to Highlight selected/ active/ Current menu item 请使用以下Css突出显示所选/活动/当前菜单项

.menu ul ul{padding-left:10px;}
.menu ul li.active a{font-weight:bold;}
.menu ul li.active ul a{font-weight:normal;}
.menu ul li.active ul li.active a{font-weight:bold;}

This will work 100%. 这将100%工作。

AFAIK the active menu position should have a special css class assigned to it. AFAIK活动菜单位置应该有一个特殊的css类分配给它。 The class is probably called "active". 该类可能被称为“活跃”。 You can target this class with some css rules and you should be done. 您可以使用一些css规则来定位此类,您应该完成。

That's very easy i just found it. 我发现它很容易。 That you have to do overrode for css such as a:link, a:hover, a:visited are using white colour but you need grey colour instead for active page you just make anything the same and put !important behind that in #active_menu as example : 你需要为css进行覆盖,例如a:link,a:hover,a:visited使用的是白色,但你需要灰色代替活动页面,你只需要做任何相同的事情,然后把它放在#active_menu中作为背后的重要部分例如:

#main a:link, #main a:hover, #main a:visited {colour:#FFF;}

#active_menu {#CCC !important;}

Please Try this Css 请试试这个Css

#menu ul li.active a{background-color:#eee;color:#333;
                     border-bottom:1px solid #eee;}

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

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