window 调整大小时内容自动隐藏 bootstrap
Content automatically Hides when window re-sizes bootstrap
window 调整大小后,以下潜水会自动隐藏。
一切似乎都是对的。只有图像显示。该图像是背景图像。
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
<div class="carousel-inner">
<div class="item active">
<img src="img/lines1.jpg" alt="First slide">
<div class="header-text hidden-xs">
<div class="col-md-12 text-center">
<h2 style="font-size: 50px;">
<b style="color:white">Welcome to <i>We</i><b style="color:red;">Track</b>™</b>
</h2>
<h3>
<span style="font-size: 26px;">Track Your <b style="color:red;">Vehicles</b> with a new Level</span>
</h3>
<br>
<div class="">
<a class="btn btn-theme btn-sm btn-min-block" href="login.php"><b>Login</b></a><a class="btn btn-theme btn-sm btn-min-block" href="signup.php"><b>Signup</b></a></div>
</div>
</div>
</div>
</div>
</div>
您应该 "hidden-xs" 移动到图像父元素。
演示:http://jsfiddle.net/murid/nvpxtgae
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
<div class="carousel-inner">
<div class="item active hidden-xs">
<img src="img/lines1.jpg" alt="First slide">
<div class="header-text">
<div class="col-md-12 text-center">
<h2 style="font-size: 50px;">
<b style="color:white">Welcome to <i>We</i><b style="color:red;">Track</b>™</b>
</h2>
<h3>
<span style="font-size: 26px;">Track Your <b style="color:red;">Vehicles</b> with a new Level</span>
</h3>
<br>
<div class="">
<a class="btn btn-theme btn-sm btn-min-block" href="login.php"><b>Login</b></a><a class="btn btn-theme btn-sm btn-min-block" href="signup.php"><b>Signup</b></a>
</div>
</div>
</div>
</div>
</div>
</div>
window 调整大小后,以下潜水会自动隐藏。 一切似乎都是对的。只有图像显示。该图像是背景图像。
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
<div class="carousel-inner">
<div class="item active">
<img src="img/lines1.jpg" alt="First slide">
<div class="header-text hidden-xs">
<div class="col-md-12 text-center">
<h2 style="font-size: 50px;">
<b style="color:white">Welcome to <i>We</i><b style="color:red;">Track</b>™</b>
</h2>
<h3>
<span style="font-size: 26px;">Track Your <b style="color:red;">Vehicles</b> with a new Level</span>
</h3>
<br>
<div class="">
<a class="btn btn-theme btn-sm btn-min-block" href="login.php"><b>Login</b></a><a class="btn btn-theme btn-sm btn-min-block" href="signup.php"><b>Signup</b></a></div>
</div>
</div>
</div>
</div>
</div>
您应该 "hidden-xs" 移动到图像父元素。
演示:http://jsfiddle.net/murid/nvpxtgae
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
<div class="carousel-inner">
<div class="item active hidden-xs">
<img src="img/lines1.jpg" alt="First slide">
<div class="header-text">
<div class="col-md-12 text-center">
<h2 style="font-size: 50px;">
<b style="color:white">Welcome to <i>We</i><b style="color:red;">Track</b>™</b>
</h2>
<h3>
<span style="font-size: 26px;">Track Your <b style="color:red;">Vehicles</b> with a new Level</span>
</h3>
<br>
<div class="">
<a class="btn btn-theme btn-sm btn-min-block" href="login.php"><b>Login</b></a><a class="btn btn-theme btn-sm btn-min-block" href="signup.php"><b>Signup</b></a>
</div>
</div>
</div>
</div>
</div>
</div>