带推特的图像滑块 bootstrap 响应式布局
Image slider with twitter bootstrap responsive layout
我已经创建了我的网站以具有 Twitter bootstrap 响应式布局,但我只是添加了一个图像滑块,并且当您像我的其他部分一样缩小屏幕时似乎无法将其缩小到我试图将它包装在标签中的网站,但它没有任何效果,有人能帮我解决这个问题吗?提前致谢!
这是我的图片滑块 HTML 代码:
<div class="container">
<div class="span12">
<div id = "Myhero">
<div id = "pager"></div>
<div class = "glyphicon glyphicon-pause" id = "pause"></div>
<div class = "glyphicon glyphicon-play" id = "play"></div>
<div class = "glyphicon glyphicon-chevron-right" id = "next"></div>
<div class = "glyphicon glyphicon-chevron-left" id = "prev"></div>
<div id = "Myslider">
<div class = "MyMyitems">
<img src = "b1.png"></img>
<div class = "Myinfo">
<h2>Photo/h2>
<p>Photo<a href = "#"></a>Link Here</p>
</div><!-- end of Myinfo -->
</div><!-- end of Myitems -->
<div class = "Myitems">
<img src = "b1.png"></img>
<div class = "Myinfo">
<h2>Photo/h2>
<p>Photo<a href = "#"></a>Link Here</p>
</div><!-- end of Myinfo -->
</div><!-- end of Myitems -->
<div class = "Myitems">
<img src = "b1.png"></img>
<div class = "Myinfo">
<h2>Photo/h2>
<p>Photo<a href = "#"></a>Link Here</p>
</div><!-- end of Myinfo -->
</div><!-- end of Myitems -->
<div class = "Myitems">
<img src = "b1.png"></img>
<div class = "Myinfo">
<h2>Photo/h2>
<p>Photo<a href = "#"></a>Link Here</p>
</div><!-- end of Myinfo -->
</div><!-- end of Myitems -->
<div class = "Myitems">
<img src = "b1.png"></img>
<div class = "Myinfo">
<h2>Photo/h2>
<p>Photo<a href = "#"></a>Link Here</p>
</div><!-- end of Myinfo -->
</div><!-- end of Myitems -->
<div class = "Myitems">
<img src = "b1.png"></img>
<div class = "Myinfo">
<h2>Photo/h2>
<p>Photo<a href = "#"></a>Link Here</p>
</div><!-- end of Myinfo -->
</div><!-- end of Myitems -->
</div><!-- slider id -->
</div><!-- end of Hero -->
</div>
</div>
您是否添加了推特 bootstrap 滑块或其他滑块。你能分享实时网站 url 吗?您可以轻松添加默认 bootstrap 滑块,此处为代码
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
<li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
<li data-target="#carousel-example-generic" data-slide-to="1"></li>
<li data-target="#carousel-example-generic" data-slide-to="2"></li>
</ol>
<div class="carousel-inner" role="listbox">
<div class="item active">
<img src="photo.jpg" alt="photo">
<div class="carousel-caption">
CONTENT
</div>
</div>
<div class="item">
<img src="photo.jpg" alt="photo">
<div class="carousel-caption">
CONTENT
</div>
</div>
</div>
<a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
抱歉,我是一个完全的初学者,我根据在线示例创建了一个图像滑块。我不知道 bootstrap 在其主页上有一个图像滑块 class 和示例。抱歉,我不想浪费任何人的时间!
我已经创建了我的网站以具有 Twitter bootstrap 响应式布局,但我只是添加了一个图像滑块,并且当您像我的其他部分一样缩小屏幕时似乎无法将其缩小到我试图将它包装在标签中的网站,但它没有任何效果,有人能帮我解决这个问题吗?提前致谢!
这是我的图片滑块 HTML 代码:
<div class="container">
<div class="span12">
<div id = "Myhero">
<div id = "pager"></div>
<div class = "glyphicon glyphicon-pause" id = "pause"></div>
<div class = "glyphicon glyphicon-play" id = "play"></div>
<div class = "glyphicon glyphicon-chevron-right" id = "next"></div>
<div class = "glyphicon glyphicon-chevron-left" id = "prev"></div>
<div id = "Myslider">
<div class = "MyMyitems">
<img src = "b1.png"></img>
<div class = "Myinfo">
<h2>Photo/h2>
<p>Photo<a href = "#"></a>Link Here</p>
</div><!-- end of Myinfo -->
</div><!-- end of Myitems -->
<div class = "Myitems">
<img src = "b1.png"></img>
<div class = "Myinfo">
<h2>Photo/h2>
<p>Photo<a href = "#"></a>Link Here</p>
</div><!-- end of Myinfo -->
</div><!-- end of Myitems -->
<div class = "Myitems">
<img src = "b1.png"></img>
<div class = "Myinfo">
<h2>Photo/h2>
<p>Photo<a href = "#"></a>Link Here</p>
</div><!-- end of Myinfo -->
</div><!-- end of Myitems -->
<div class = "Myitems">
<img src = "b1.png"></img>
<div class = "Myinfo">
<h2>Photo/h2>
<p>Photo<a href = "#"></a>Link Here</p>
</div><!-- end of Myinfo -->
</div><!-- end of Myitems -->
<div class = "Myitems">
<img src = "b1.png"></img>
<div class = "Myinfo">
<h2>Photo/h2>
<p>Photo<a href = "#"></a>Link Here</p>
</div><!-- end of Myinfo -->
</div><!-- end of Myitems -->
<div class = "Myitems">
<img src = "b1.png"></img>
<div class = "Myinfo">
<h2>Photo/h2>
<p>Photo<a href = "#"></a>Link Here</p>
</div><!-- end of Myinfo -->
</div><!-- end of Myitems -->
</div><!-- slider id -->
</div><!-- end of Hero -->
</div>
</div>
您是否添加了推特 bootstrap 滑块或其他滑块。你能分享实时网站 url 吗?您可以轻松添加默认 bootstrap 滑块,此处为代码
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
<li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
<li data-target="#carousel-example-generic" data-slide-to="1"></li>
<li data-target="#carousel-example-generic" data-slide-to="2"></li>
</ol>
<div class="carousel-inner" role="listbox">
<div class="item active">
<img src="photo.jpg" alt="photo">
<div class="carousel-caption">
CONTENT
</div>
</div>
<div class="item">
<img src="photo.jpg" alt="photo">
<div class="carousel-caption">
CONTENT
</div>
</div>
</div>
<a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
抱歉,我是一个完全的初学者,我根据在线示例创建了一个图像滑块。我不知道 bootstrap 在其主页上有一个图像滑块 class 和示例。抱歉,我不想浪费任何人的时间!