缩放的背景图像

时间:2015-08-20 14:37:21

标签: javascript html css wordpress

我的网站qubik-design.co.nf上有问题,当我在'联系'或者' Quienes somos'等我的背景图像被缩放,它完全适合高度,我希望它显示为主页背景。停用超大标签背景显示正确,但会产生错误并显示无限滚动。

<ul id="supersized" class="quality" style="visibility: visible;">
    <li class="slide-0 activeslide">
        <a target="_blank">
            <img src="http://qubik-design.co.nf/wp-content/uploads/2015/08/intro-bg1.jpg" style="width: 1903px; top: -469.5px; left: 0px; height: 1427.25px;">
        </a>
    </li>
</ul>

supersized.css:

#supersized-loader { position:absolute; top:50%; left:50%; z-index:0; width:60px; height:60px; margin:-30px 0 0 -30px; text-indent:-999em; background:url(../images/img/progress.gif) no-repeat center center;}

    #supersized {  display:block; position:fixed; left:0; top:0; overflow:hidden; z-index:-999; height:100%; width:100%; }
        #supersized img { width:auto; height:auto; position:relative; display:none; outline:none; border:none; }
            #supersized.speed img { -ms-interpolation-mode:nearest-neighbor; image-rendering: -moz-crisp-edges; }   /*Speed*/
            #supersized.quality img { -ms-interpolation-mode:bicubic; image-rendering: optimizeQuality; }           /*Quality*/

        #supersized li { display:block; list-style:none; z-index:-30; position:fixed; overflow:hidden; top:0; left:0; width:100%; height:100%; background:#111; }
        #supersized a { width:100%; height:100%; display:block; }
            #supersized li.prevslide { z-index:-20; }
            #supersized li.activeslide { z-index:-10; }
            #supersized li.image-loading { background:#111 url(../images/img/progress.gif) no-repeat center center; width:100%; height:100%; }
                #supersized li.image-loading img{ visibility:hidden; }
            #supersized li.prevslide img, #supersized li.activeslide img{ display:inline; max-width:none; }

我已经尝试了几项更改:修改supersized.css没有修复任何内容,可能错误在supersized.3.2.7.js文件中,但我不知道要修改什么。也许错误是img的风格,但我不知道在哪里修改它。谢谢提前。

1 个答案:

答案 0 :(得分:0)

您似乎在两个地方包含了背景图片:首先是<body标签,再次是超大元素(看起来像是由脚本添加)。

如果您无法关闭脚本,只需使用以下方法隐藏它:

#supersized { display:none; }

它会回到身体背景。