问题:

  如果在写CSS时,同时遇到了display:inline-block; text-indent:-9999px后,页面元素会随着text-indent的值移走。这个IE下的一个BUG。

 

解决:(在IE6、7下已经通过测试)

  .div {text-indent:0; line-height:0; font-size:0; overflow:hidden;}

 

经过测试可以解决IE6和7下所出现的上述问题。针对不同浏览器时再对些做一下相应的兼容。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
  • 2021-07-26
  • 2021-05-19
猜你喜欢
  • 2021-09-15
  • 2022-02-04
  • 2022-12-23
  • 2022-12-23
  • 2022-02-02
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案