不知道是否很多人在做网页时一直以IE为标准,最近我在学习《Agile Web Development with Rails》时,当案例做到store时却发现IE莫名其妙的出现了异常,当鼠标移动到Add To Cart超级链接上后,旁边的图片莫名其妙的被截去一截!最开始怀疑是CSS出现了问题,但使用FireFox访问同样网页却没有类似问题发生。在其示例CSS文件中有这样一段内容:

/* === Use the Holly Hack to fix layout bugs in IE on Windows === */
/* Hide from IE-mac \*/
* html .catalogentry { height:1%; }
/* End hide from IE-mac */

尽管该fix并没有解决IE显示问题,但顺着线索却发现原来IE在对CSS样式解析上存在如此多的bug!提醒大家在做项目时不要只认为IE就是最好的,并唯一以其为标准。

如果想了解更多信息,可以访问Positiong Is Everything网站:http://www.positioniseverything.net/

简体中文Positiong Is Everything:http://www.onestab.net/a/pie/

另外推荐一篇文章《How To Attack An Internet Explorer (Win) Display Bug

相关文章:

  • 2021-09-10
  • 2022-01-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-02
  • 2021-08-26
  • 2021-11-28
猜你喜欢
  • 2021-10-05
  • 2021-12-31
  • 2022-02-05
  • 2022-12-23
  • 2021-11-11
  • 2022-02-11
相关资源
相似解决方案