兼容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写法有哪些的详细内容,更多文章请关注木庄网络博客

返回前面的内容

相关阅读 >>

使用html和css实现康奈尔笔记的模板

background属性怎么用

css怎么给一个盒子加盒阴影

border属性怎么用

css实现元素自适应屏幕大小的思路是什么

css权重是什么?css权重的介绍

css怎么实现不透明度渐变

详解css3+svg滤镜实现不规则边框的方法

如何解决css英文不自动换行的问题

在html元素中设置css样式的方式是什么

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




打赏

取消

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

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

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

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

评论

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