0

我正在尝试使用引导带响应 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>
4

1 回答 1

0

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

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

希望这可以帮助。

于 2013-01-08T03:00:10.840 回答