E6下默认不缓存背景图片,CSS里每次更改图片的位置时都会重新发起请求.

可用下方法来解决(让IE6缓存背景图片):

在head区(即<head>到</head>之间添加以下代码:
复制内容到剪贴板
代码:
<!–[if lt IE 7]>
<script type=”text/javascript”>
document.execCommand(”BackgroundImageCache”, false, true);
</script>
<![endif]–>

    <!--[if IE 6]>
    <script type=”text/javascript”> document.execCommand("BackgroundImageCache", false, true); </script>
    <![endif]-->

经测试,解决方法确实有效

相关文章:

  • 2021-07-18
  • 2021-09-08
  • 2022-12-23
  • 2022-12-23
  • 2021-12-28
  • 2021-10-01
  • 2021-09-23
  • 2022-12-23
猜你喜欢
  • 2021-08-12
  • 2022-12-23
  • 2022-12-23
  • 2022-01-27
  • 2021-06-16
  • 2021-11-09
  • 2022-12-23
相关资源
相似解决方案