实际工作中碰到问题,通过论坛和搜索解决了,值得记一记。今天收到测试员的邮件,错误截图是IE6里的,在某处搜索结果的10/100出现了2个100,第2个100跑到第2行。在IE7和FF里都是正确的,联想到前些天在blueidea论坛看到的一个帖子,然后就去仔细看了一下,发现有人说这是IE的注释bug.可以通过加clear或者修改注释在程序的位置(其实就是程序员把注释写到div里面去了)。
搜索到这个,里面有人说在《CSS Mastery Advanced Web Standards Solutions》书里有说到经典的注释bug:
IE 6 duplicate character bug: This bug manifests itself when you have multiple comments in between the first and last of a series of floated elements. The first two comments have no effect, but each subsequent comment causes two characters to be duplicated.
解决方法就是把html代码中那些连续float元素间的注释给删了,我是为了方便还是给那个元素加了clear:both 。