css突出显示当前页面(css highlight current page)

编程入门 行业动态 更新时间:2024-10-22 20:19:47
css突出显示当前页面(css highlight current page)

我发现了一些关于精灵导航菜单的教程。 我现在的问题是,当我在本地制作时,我尝试选择每个菜单并且没有突出显示。 悬停工作正常,只突出显示选定的菜单是行不通的。

这里是链接http://webberzsoft.com/tabmenu/services.htm

任何帮助将非常感激。

谢谢

蒂尔索

I've found some tutorials regarding sprite navigation menu. My problem now when I make it locally, I tried to select each menu and it was not highlighted. Hover is working fine only highlighted selected menu is doesn't work.

here is the link http://webberzsoft.com/tabmenu/services.htm

Any help would very much appreciated.

Thanks

Tirso

最满意答案

从我所看到的,你所有的页面<body>都有一个“家庭”ID。

要使用您正在使用的CSS规则突出显示当前页面,您应该为每个页面设置相应的身份标识。

From what I see, all of your pages' <body>s have a "home" id.

For the current page to be highlighted with the CSS rules you're using, you should have corresponding body id's for each page.

更多推荐

本文发布于:2023-08-06 03:44:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1444449.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:页面   css   highlight   page   current

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!