您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

ie8 hack_html/css_WEB-ITnose

2024/3/24 8:22:20发布19次查看
1.‘\9’:
    eg:.test { color/*\**/: blue\9 }
.header {width:300px;} /* 所有浏览器*/
.header {width/*\**/:330px\9;} /* 所有浏览器ie浏览器 */
.header {*width:310px;} /* ie7和ie6能识别,ie8和ff不能识别*/
.header {_width:290px;} /* ie6能识别,ie7、ie8和ff不能识别*/
2.利用条件注释语句: 此内容只有ie可见          
                lt 表示less than 当前条件版本以下的版本,不包含当前版本。
                gte 表示greeter than or equal 当前版本以上版本,并包含当前版本。
                lte 表示less than or equal 当前版本以下版本,并包含当前版本。
3.其它hack 技术:
.color1{ color:#f00; color/*\**/:#00f /*\**/}/*ie6,ie7,ie8,ff,op,sa识别*/
.color2{ color:#f00; color /*\**/:#00f /*\9**/}/*ie7,ie8,ff,op,sa识别*/
.color3{ color:#f00; color/*\**/:#00f \9}/*ie6,ie7,ie8识别*/
.color4{ color:#f00; color /*\**/:#00f\9}/*ie7,ie8识别*//*“color”和“/*\**/”之间有个空格*/
4.
汇总下ie各版本的css hack。
hack 示例 ie6(s) ie6(q) ie7(s) ie7(q) ie8(s) ie8(q)
* *color yes yes yes yes no yes
+ +color yes yes yes yes no yes
- -color yes yes no no no no
_ _color yes yes no yes no yes
# #color yes yes yes yes no yes
\0 color\0 no no no no yes no
\9 color\9 yes yes yes yes yes yes
!important color:blue !important;
color:green; no no yes no yes no
标准模式中:
1,减号(-)是ie6专有hack
2,反斜杠零(\0)是ie8专有hack
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product