该content
属性不适:hover
用于任何版本的 IE 上的选择器
HTML:
<img class="helpButton" src="images/helpButton.png" alt="Help Button" />
CSS:
.helpButton:hover {content:url(../images/helpButton-hover.png); cursor: pointer}
请注意,我确实有一个 HTML 5 doctype ( <!DOCTYPE html>
)。