iPhone屏幕中的滑块

时间:2013-01-07 19:35:15

标签: css html5 jquery-ui css3 twitter-bootstrap

我正在尝试使用启动带响应css来减小滑块的宽度,以便在iphone中显示它 但我无法做到 你能帮帮我吗? http://jsfiddle.net/CXkQp/4/

截图 https://docs.google.com/file/d/0B3IBJKENGE7RQkk1eEI3TDNoN2c/edit

在下面提供我的代码

<div id="banner" class="clearfix" style="border-bottom: 2px solid #cacaca;">
          <div class="bx-wrapper" style="width:100%; position:relative; margin-top: 0px; margin-bottom: 0px;">
              <div class="bx-window" style="position:relative; overflow:hidden; width:100%">

                <div class="container">

                                <div id="da-slider" class="da-slider" style="margin-top: 0px; margin-bottom: 0px; height: 300px; background-position: 247950% 0%;">
                                  <div class="da-slide da-slide-toleft" style="width: 100%">
                                    <h2><img src="http://www.defie.co/docs/examples/frontpage_rotate1A.jpg" alt="image01"></h2>
                                    <div class="da-img"><img src="http://www.defie.co/docs/examples/frontpage_rotate1B.jpg" alt="image01"></div>
                                  </div>
                                  <div class="da-slide da-slide-toleft" style="width: 100%">
                                    <h2><img src="http://www.defie.co/docs/examples/frontpage_rotate2A.jpg" alt="image01"></h2>
                                    <div class="da-img"><img src="http://www.defie.co/docs/examples/frontpage_rotate2B.jpg" alt="image01"></div>
                                  </div>
                                  <div class="da-slide da-slide-fromright da-slide-current" style="width: 100%;">
                                    <h2><img src="http://www.defie.co/docs/examples/frontpage_rotate3A.jpg" alt="image01"></h2>
                                    <div class="da-img"><img src="http://www.defie.co/docs/examples/frontpage_rotate3B.jpg" alt="image01"></div>
                                  </div>
                                  <nav class="da-arrows" style="width: 100%">
                                    <span class="da-arrows-prev"></span>
                                    <span class="da-arrows-next"></span>
                                  </nav>
                                <nav class="da-dots"><span class=""></span><span class=""></span><span class="da-dots-current"></span></nav></div>
                                  </div>

              </div>
          </div>
      </div>

1 个答案:

答案 0 :(得分:0)

有几点可以帮助你入门。在你的jsFiddle中,你的容器div @ line 120似乎没有结束标记。

此外,您希望滑块可以缩放,但它不在流体行div中。我认为你的引导网格需要工作。仔细检查流体网格的结构:http://twitter.github.com/bootstrap/scaffolding.html#fluidGridSystem

希望这有帮助。