某些导航元素在页面上时显示悬停,而其他元素则不显示?
我的一个客户的网站导航遇到了一个奇怪的问题。在某些页面上,他们的悬停类似乎显示您当前正在查看的页面。但在其他人身上却没有?
我没有设计这个网站,但我正在帮助他们工作,所以我有点迷失。
当您当前使用时,套件和政策不会显示他们,但其余的......如果有人有任何见解,我将不胜感激。
A client of mine is having a strange problem with their sites navigation.. on certain pages their hover class appears to show what page you're currently viewing. But on others it doesn't?
I didn't design this site, but I'm helping them work on it, so I'm a tad bit lost.
The suites and policies don't show when you're currently on them, but the rest do.. if anyone has any insight I'd appreciate it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
悬停图像在菜单 css 中设置,
因此当您位于主页时,body 标记会添加一个索引类。似乎未显示的页面应用了不同的名称。
The hover image is set in your menu css here,
So when you are on the home page, the body tag has a index class added to it. It seems a different name is applied for pages where it does not show.
看起来当前页面导航项的样式是由
body
元素上的类控制的。将“suites”类添加到主体中会导致显示它的指针。 “预订”类获取策略菜单项来执行此操作。这些类不会应用于这些页面的
body
元素。 (实际上正在应用不同的类)It looks like the style for the current page navigation item are controlled by a class on the
body
element. Adding the "suites" class to the body causes the pointer to show for it. The "reservations" class gets the policies menu item to do it.Those classes aren't being applied to the
body
element for those pages. (Different classes are being applied, actually)在 Suites 页面上:
显然,body 类决定了突出显示的菜单,但在 suites 页面上,
On the Suites page:
Clearly the body class determines the highlighted menu, but on the suites page,
<body class="monaco">