兼容ie的css写法有哪些


当前第2页 返回上一页

1

2

3

4

5

6

<!DOCTYPE html>  

<!--[if IE 6 ]> <html class="ie6 lte_ie6 lte_ie7 lte_ie8" lang="zh-CN"> <![endif]-->

<!--[if lte IE 6 ]> <html class="lte_ie6 lte_ie7 lte_ie8" lang="zh-CN"> <![endif]-->

<!--[if lte IE 7 ]> <html class="lte_ie7 lte_ie8" lang="zh-CN"> <![endif]-->

<!--[if lte IE 8 ]> <html class="lte_ie8" lang="zh-CN"> <![endif]-->

<!--[if (gte IE 9)|!(IE)]><!--><html lang="zh-CN"><!--<![endif]-->

1

2

3

.ie6 .demo { 

    margin-left: 20px;

      }

这种方法可以将代码独立出一个模块,也不会新增加HTTP请求,目前被使用较多。

推荐学习:css视频教程

以上就是兼容ie的css写法有哪些的详细内容,更多文章请关注木庄网络博客

返回前面的内容

相关阅读 >>

css怎么调整行间距

css斜体样式怎么写

css中的display是什么意思

css如何禁止滑动

css怎么设置图片拉伸

css伪类原理是什么

css中display属性怎么用

css怎么让div居中

css背景图片颜色怎么设置

css如何使用:indeterminate选择器

更多相关阅读请进入《css》频道 >>




打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...