vcxiaohan2 2016-01-09 10:27 采纳率: 0%
浏览 1596
已采纳

css hack \9\0会影响ie8

我测试过了,的确会影响ie8;
但是教程里说\9\0不会影响;
http://jingyan.baidu.com/article/c45ad29cd41857051753e215.html
请往下翻看老版教程;
附上我的截图:

 css:background: blue;
            background: red\0;
            background: yellow\9\0;

ietester下:
图片说明
虚拟机ie8下:
图片说明

  • 写回答

2条回答 默认 最新

  • save4me 2016-01-11 02:58
    关注

    经过测试,发现问题出在你和你提供的链接使用了不同的CSS属性,你测试的是background,你提供的链接测试的是color。
    通过下面的页面,可以发现,对于color,\9\0确实对IE8确实不起作用,但是对于background,它又是起作用的。

    <html>
    <head>
    <style type="text/css">
    .background {
      background: orange;
      background: red\9;
      _background: blue;
      *background: green;
      background: yellow\9\0;
    }
    
    .color {
      color: orange;
      color: red\9;
      _color: blue;
      *color: green;
      color: yellow\9\0;
    }
    
    </style>
    </head>
    <body>
    <div class="background">
      This is a test!
    </div>
    <div class="color">
      This is a test!
    </div>
    </body>
    </html>
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料
  • ¥15 使用R语言marginaleffects包进行边际效应图绘制
  • ¥20 usb设备兼容性问题
  • ¥15 错误(10048): “调用exui内部功能”库命令的参数“参数4”不能接受空数据。怎么解决啊
  • ¥15 安装svn网络有问题怎么办
  • ¥15 Python爬取指定微博话题下的内容,保存为txt
  • ¥15 vue2登录调用后端接口如何实现
  • ¥65 永磁型步进电机PID算法
  • ¥15 sqlite 附加(attach database)加密数据库时,返回26是什么原因呢?