ie6下a标签href="#"时a:hover失效
<style>.entry-content a:link, .entry-content a:visited { color: #57A3E8; text-decoration: none;}.entry-content a:hover { color: #F90; text-decoration: underline;}</style><a href="#">这问题的解决方案只需要给a标签加个链接就可以解决这个bug或者是写成href值给个空格也能避免:hover失效问题</a> |
在ie6下"颜色"根本就不会变成红色,其他浏览器都是好的,要解决这个问题就必须触发a:hover的hasLayout,例如a:hover{display:inline-block}或者a:hover{zoom:1}。