兼容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怎么设置li不要点

css里面有哪些选择器

css中权重是什么意思

css grid布局的优缺点是什么?

css hover失效怎么办

css是利用什么xhtml标记构建网页布局

html引用css文件的方法

css list-style-type属性怎么用

css中如何使颜色透明度

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




打赏

取消

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

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

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

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

评论

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