Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/88.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
Jquery JS超大插件-图像在视口边缘截断_Jquery_Html_Css_Supersized - Fatal编程技术网

Jquery JS超大插件-图像在视口边缘截断

Jquery JS超大插件-图像在视口边缘截断,jquery,html,css,supersized,Jquery,Html,Css,Supersized,所以我用的是超大插件(http://buildinternet.com/2011/07/supersized-3-2-fullscreen-jquery-slideshow/)在站点后面显示漂亮的背景图像。它通常会拉伸以适应浏览器窗口的大小。在iPad上,背景在视口的末端被截断。我可以掐一下看整个网站,放大的很好。但背景仍然不变 我需要的最重要的东西是图像填充内容的长度和高度。链接和css如下: 非常感谢您的帮助,在这里枪口底下。谢谢 /* Supersized styles */

所以我用的是超大插件(http://buildinternet.com/2011/07/supersized-3-2-fullscreen-jquery-slideshow/)在站点后面显示漂亮的背景图像。它通常会拉伸以适应浏览器窗口的大小。在iPad上,背景在视口的末端被截断。我可以掐一下看整个网站,放大的很好。但背景仍然不变

我需要的最重要的东西是图像填充内容的长度和高度。链接和css如下:

非常感谢您的帮助,在这里枪口底下。谢谢

    /* Supersized styles */
    #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(../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; margin: 0; 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(../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; }
    /* Supersized styles end */

我想出了一种方法来解决iPhone/iPad css媒体查询的问题。这可能不是最好的方法,更像是把胶带贴在上面,这样它就能粘在一起。但它起作用了,所以我很高兴:

/*iOS上的超大补丁*/
/*iPad[纵向+横向]*/
@仅介质屏幕和(最小设备宽度:768px)和(最大设备宽度:1024px){
#超大{左边距:0;}
}
@仅媒体屏幕
和(最小设备宽度:768px)
和(最大设备宽度:1024px)
和(方向:纵向){
#超大{宽度:110%!重要;}
}
/*iPhone[纵向+横向]*/
@仅介质屏幕和(最大设备宽度:480px){
#超大{左边距:0;}
}

问题来自于将图像设置为“最大宽度:100%”的常见css 如果有什么问题,请检查css重置 img{最大宽度:100%;}

超级官员对文件“supersized.3.2.7.js”有一个解决方案:

如果您无法按照官方解决方案解决此问题,请尝试将其添加到超大css中:

#超大img{max width:none;}


这是一个棘手的问题,好消息是,我不久前使用了第一响应者的答案。坏消息是他们被另一家公司收购了,网站设计也不复存在。谢谢你的代码。我一定会把它纳入未来的项目中。