我可能遇到了一个非常简单的问题。我正在使用Twitter Boostrap作为一个框架来开发一些登录页面以及我的网站标题中的超大Jquery Slider。当在移动设备上查看网站或当浏览器窗口缩小时,就会出现问题。
Supersized似乎接管了网站的内容背景,并在全屏运行,内容显示在其上方。理想情况下,我希望超大滑块留在标题内,而不是在移动设备查看时向下扩展内容的侧面。
这可能是非常简单的事情,但是我非常感谢任何人的帮助!:)
网址:http://www.landing.xeonweb.com.au/index2.html
标题CSS:
.header{
width:100%;
height:700px;
clear:both;
overflow:hidden;
}超大CSS:
* { margin:0; padding:0; }
body { background:#111; height:100%; }
img { border:none; }
#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; 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; }HTML设置:
<div class="row">
<div id="top-message">
<p>Contact Us Today for our Monthly Special</p>
</div>
</div>
<div class="row">
<div class="header">
<!--Arrow Navigation-->
<a id="prevslide" class="load-item"></a>
<a id="nextslide" class="load-item"></a>
<!--Slide captions displayed here-->
<div id="slidecaption"></div>
</div><!--End Header-->
</div><!--End Row-->发布于 2013-04-12 07:28:06
@media (max-width: 480px) {
#supersized img {
height: auto!important;
}
}https://stackoverflow.com/questions/15960505
复制相似问题