首页 > Web开发 > 详细

css Hack,用IE11模拟测试的,条件注释要找真IE去测,模拟的无效

时间:2014-06-03 06:53:56      阅读:504      评论:0      收藏:0      [点我收藏+]
bubuko.com,布布扣
<!DOCTYPE html>
<!--[if lt IE 7 ]> <html class="ie6 ie"> <![endif]-->
<!--[if IE 7 ]>    <html class="ie7 ie"> <![endif]-->
<!--[if IE 8 ]>    <html class="ie8 ie"> <![endif]-->
<!--[if IE 9 ]>    <html class="ie9 ie"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html>
<!--<![endif]-->

<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
    div{
        width: 200px;
        height: 200px;
        background: #000;
        /*background: #f00\9; /* (IE11 - IE6]不包括IE11 */
        /*background: #f00\0; /* [IE8  - IE11] 包括IE8 */
        /*background: #f00\9\0; /* [IE6 - IE11)不包括IE11 */
        /*background: #f00\0\9; /* [IE8  - IE11) 不包括IE11 */
        /*background: #f00/9; /* [IE8  - IE11) 不包括IE11 */
    }
    </style>
    <!--[if IE 8 ]>    
    <style> div{background-color: #f00;} </style>
    <![endif]-->
</head>
<body>
<div></div>

</body>
</html>
bubuko.com,布布扣

 

css Hack,用IE11模拟测试的,条件注释要找真IE去测,模拟的无效,布布扣,bubuko.com

css Hack,用IE11模拟测试的,条件注释要找真IE去测,模拟的无效

原文:http://www.cnblogs.com/qiangspecial/p/3760811.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!