针对IE6 7 8当独写样式

IE8的格式:

.foot{padding:12px 10px\9;} //在后面加\9

IE7的格式:

.foot{*padding:12px 10px\9;} //在前面加*

IE6的格式:

.foot{_padding:12px 10px\9;} //在前面加_

或者:

或者
* html .foot{padding:12px 10px}  /* IE6 浏览器实行这句定义 */
*+html .foot{line-height: 23px; } /* IE7 浏览器实行这句定义*/

posted @ 2015-07-11 10:13  绝版幸福  阅读(184)  评论(0编辑  收藏  举报