0

当我重新调整浏览器窗口的大小时,滑块离开主容器我正在使用引导响应 css 我看到滑块容器中的额外边距,如果我删除它可以但如果我仍然使窗口更小滑块熄灭如何修复错误...

http://jsfiddle.net/48y2Q/embedded/result/ http://jsfiddle.net/48y2Q/

在下面提供我的代码

<div class="container">

                                <div id="da-slider" class="da-slider" style="margin-top: 0px; margin-bottom: 0px; height: 300px; background-position: 2700% 0%;">
                                  <div class="da-slide da-slide-fromright da-slide-current" style="width: 1122px;">
                                    <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: 1122px;">
                                    <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-toleft" style="width: 1122px;">
                                    <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: 1122px;">
                                    <span class="da-arrows-prev"></span>
                                    <span class="da-arrows-next"></span>
                                  </nav>
                                <nav class="da-dots"><span class="da-dots-current"></span><span class=""></span><span class=""></span></nav></div>
                                  </div>
4

2 回答 2

0

使用默认引导程序的轮播http://twitter.github.com/bootstrap/javascript.html#carousel

于 2013-01-02T18:16:15.417 回答
0

你在很多地方都有固定的宽度,所以它不适合移动布局。改变它:每一个你做过的style="width: ****px"地方style="width: 100%"

我试过了,看起来还不错:http: //jsfiddle.net/48y2Q/1/

于 2013-01-02T18:32:59.033 回答