直接从自己空间COPY过来的,排版上可能会有点乱。
1.概要
1.所有浏览器 通用 height: 100px; IE6 专用 _height: 100px; IE6 专用 *height: 100px; IE7 专用 *+height: 100px; IE7、FF 共用 height: 100px !important; *+html 与 *html 是IE特有的标签, firefox 暂不支持.而*+html 又为 IE7特有标签. 代码: <style> #wrapper { width: 120px; } *html #wrapper { width: 80px;} *+html #wrapper { width: 60px;} </style> 注意:*+html 对IE7的兼容必须保证HTML顶部有如下声明: 2最狠的手段 – !important; 3.margin加倍的问题,一个IE6都存在的BUG |