1.样式值后面直接跟/9,可区别IE类浏览器和非IE浏览器 padding-bottom:15px; padding-bottom:30px/9; 这样写IE类读取30px,非IE浏览器读取15px。然后再写IE7和IE6的hack区别出IE8: padding-bottom:15px; //所有浏览器 padding-bottom:30px/9; //IE类浏览器可覆盖上行样式 *padding-bottom:20px; //IE7和IE6(或者写成 +padding-bottom:20px; )可覆盖上行样式 _padding-bottom:17px; //IE6 可覆盖上行样式 样式值后面直接跟/0,直接区别IE8和其他浏览器 padding-bottom:15px; //所有浏览器 padding-bottom:30px/0; 这样写IE8读取30px,其他浏览器读取15px。padding-bottom:15px; padding-bottom:30px/0; 这样写IE8读取30px,其他浏览器读取15px。-bottom:15px; padding-bottom:30px/0; 这样写IE8读取30px,其他浏览器读取15pxpadding-bottom:15px; padding-bottom:30px/0; 这样写IE8读取30px,其他浏览器读取15px。 padding-bottom:30px/0; //IE8覆盖上行样式