Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道如何在 FireFox 中显示我的 CSS 内容。它似乎没有正确显示。这是代码:
div.images:hover { content:url(http://domain.com/images.png); }
为什么内容悬停不能在 modzilla 上正确显示?
该content属性适用于:before/伪元素。因此,它不应该在类似的东西上工作。:after div.images:hover
content
:before
:after
div.images:hover
相反,使用该background属性添加样式:
background
div.images:hover { background-image: url(http://domain.com/images.png); }