在此网页上 http://nkarch.lifeintheuktest.co/the-work.aspx我有<li>
div
内的元素与 id=ProjectsGrid
.
CSS 规则 #ProjectsGrid ul li a:hover h4
在 chrome 和 IE 中运行良好,但在 firefox 上运行不正常。
有什么想法吗?
最佳答案
问题出在font-weight
.没有悬停时你没有它。设置:
.TopNavigation a:link {
color: white;
line-height: 200%;
text-decoration: none;
font-weight: 800;
}
一切都会好起来的。
编辑:添加font-weight
在每个 <div>
你没有,因为我发现这不仅仅是导航有问题。
关于html - 列表项 li 悬停样式在页面上不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14234937/