Bootstrap Supersized JQuery Error移动设备布局

时间:2013-04-11 23:17:26

标签: jquery html css twitter-bootstrap supersized

我有一个非常简单的问题。我使用Twitter Boostrap作为框架来开发一些登陆页面以及我站点标题内的Supersized Jquery Slider。在移动设备上查看网站或缩小浏览器窗口时会出现问题。

Supersized似乎接管了网站的内容背景,并以全屏显示,内容显示在其顶部。理想情况下,我希望Supersized Slider保持在标题内,并且在移动设备查看时不会向内展开。

这可能很简单,但我非常感谢任何帮助! :)

网址: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-->

1 个答案:

答案 0 :(得分:0)

@media (max-width: 480px) {
 #supersized img {
 height: auto!important;
 }
}