Html 是否可以在所有断点中显示响应性Boostrap转盘?
我想在大屏幕(lg和md)上连续显示10张幻灯片,根据断点大小,旋转木马必须显示幻灯片(在mobile view 1幻灯片和tablet view 3或4幻灯片中,根据屏幕大小)。是否可以在所有断点中设计响应性引导旋转木马 您可以使用Html 是否可以在所有断点中显示响应性Boostrap转盘?,html,twitter-bootstrap,carousel,Html,Twitter Bootstrap,Carousel,我想在大屏幕(lg和md)上连续显示10张幻灯片,根据断点大小,旋转木马必须显示幻灯片(在mobile view 1幻灯片和tablet view 3或4幻灯片中,根据屏幕大小)。是否可以在所有断点中设计响应性引导旋转木马 您可以使用xshidden类根据屏幕创建和隐藏内容,以隐藏小屏幕上的任何内容 <div id="carousel-top" class="carousel slide" data-ride="carousel"> <!-- Indicators -->
xshidden
类根据屏幕创建和隐藏内容,以隐藏小屏幕上的任何内容
<div id="carousel-top" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<ol class="hidden carousel-indicators" style="display:none">
<li data-target="#carousel-top" data-slide-to="0" class="active"></li>
<li class="" data-target="#carousel-top" data-slide-to="1"></li>
<li class="" data-target="#carousel-top" data-slide-to="2"></li>
</ol>
<!-- Wrapper for slides -->
<div class="carousel-inner" role="listbox">
<div class="item active">
<img src="http://www.w3schools.com/images/w3schools_green.jpg" alt="...">
</div>
<div class="item hide-on-mobile">
<img src="http://www.w3schools.com/images/w3schools_green.jpg" alt="...">
</div>
<div class="item">
<img src="http://www.w3schools.com/images/w3schools_green.jpg" alt="...">
</div>
<div class="item keep-me-out-of-small-screen">
<img src="http://www.w3schools.com/images/w3schools_green.jpg" alt="...">
</div>
<div class="item">
<img src="http://www.w3schools.com/images/w3schools_green.jpg" alt="...">
</div>
</div>
<!-- Controls -->
<a class=" left carousel-control" href="#carousel-top" 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-top" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
JQuery:
if ($(window).width() < 960) {
$('#carousel-top .keep-me-out-of-small-screen').removeClass('item').addClass('hide');
}
if($(窗口).width()<960){
$(“#旋转木马顶部。让我远离小屏幕”).removeClass('item').addClass('hide');
}
您尝试过哪些代码?