Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/36.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css 在IE";背景附件:固定“;放大时,我的背景尺寸变大了_Css_Internet Explorer_Zooming_Fixed_Background Attachment - Fatal编程技术网

Css 在IE";背景附件:固定“;放大时,我的背景尺寸变大了

Css 在IE";背景附件:固定“;放大时,我的背景尺寸变大了,css,internet-explorer,zooming,fixed,background-attachment,Css,Internet Explorer,Zooming,Fixed,Background Attachment,我希望我所有的容器都是全屏大小,背景完全填满,而不重复或滚动。所以我当然会使用“背景大小:封面”和“背景附件:固定”这两个词,而且在Firefox和Chrome中效果非常好。对于IE8,我使用JavaScript插件 当我在IE 11中打开我的页面时,只要我没有缩放,它似乎工作得很好。如果我缩小,背景也会变小。如果没有“背景附件:已修复”,则不会发生这种情况。只有在这种组合中,它才会缩放我真正不想要的背景 我做错了什么?非常感谢你 以下是我的完整代码: #someContainer{ width

我希望我所有的容器都是全屏大小,背景完全填满,而不重复或滚动。所以我当然会使用“背景大小:封面”和“背景附件:固定”这两个词,而且在Firefox和Chrome中效果非常好。对于IE8,我使用JavaScript插件

当我在IE 11中打开我的页面时,只要我没有缩放,它似乎工作得很好。如果我缩小,背景也会变小。如果没有“背景附件:已修复”,则不会发生这种情况。只有在这种组合中,它才会缩放我真正不想要的背景

我做错了什么?非常感谢你

以下是我的完整代码:

#someContainer{
width: 100%;
height: 100%;   
background: url(backgrounds/main.jpg) top center;
background-attachment:fixed;
-webkit-background-size: cover; /* For WebKit*/
-moz-background-size: cover;    /* Mozilla*/
-o-background-size: cover;      /* Opera*/
background-size: cover;         /* Generic*/
-ms-behavior: url(polyfill/backgroundsize.min.htc);
behavior: url(polyfill/backgroundsize.min.htc)
}