欢迎各位兄弟 发布技术文章
这里的技术是共享的
/* \9 是仅对IE起作用*/
margin-top:10px; margin-bottom:10px\9;
/* 下面这些在 css 要严格按顺序 */
width:150px; /*普通浏览器*/
width\0:140px ; /*为ie8*/
*+width:130px ; /*为ie7*/
_width:120px ; 或者 *width:120px ; /*为ie6*/
(*width:120px ; 假如没有 *+时,也对 IE7起作用)
(_width:120px ; 假如没有 *+时,也仅对 IE6起作用)
/*只适用于ie6,好像是不适用于ie7 */
*html .aaaa{
width:140px;
}
*html{
background-image:url(about:blank);
background-attachment:fixed;
}
/* 只适用于 ie7 不适用于 ie6 */
*+html .aaa{
width:130px;
}