Bootstrap bietet vor kurzem eine Funktion namens "Cards" alles ist cool, bis es das 747px Ansichtsfenster erreicht. Siehe Bild unten.So machen Sie Bootstrap "Cards" Responsive
Wie Sie es vermasseln sehen können, ist der Behälter nicht passen. Gibt es eine CSS-Korrektur, die wir tun können, um sicherzustellen, dass sie von 747px und darunter gut aussehen ???
Hier ist mein HTML:
<div class="row">
<div class="col-md-3">
<div class="card">
<img class="card-img-top" src="img/card1.jpg" alt="Card image cap">
<div class="card-block">
<h4 class="card-title">This is Card #1</h4>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<a href="http://v4-alpha.getbootstrap.com/components/card/" class="btn btn-primary">Learn More</a>
</div>
</div>
</div>
<div class="col-md-3">
<div class="card card-inverse card-primary text-center">
<img class="card-img-top" src="img/card2.jpg" alt="Card image cap">
<div class="card-block">
<h4 class="card-title">This is Card #2</h4>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<a href="http://v4-alpha.getbootstrap.com/components/card/" class="btn btn-primary">Learn More</a>
</div>
</div>
</div>
<div class="col-md-3">
<div class="card card-inverse card-success text-center">
<img class="card-img-top" src="img/card3.jpg" alt="Card image cap">
<div class="card-block">
<h4 class="card-title">This is Card #3</h4>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<a href="http://v4-alpha.getbootstrap.com/components/card/" class="btn btn-primary">Learn More</a>
</div>
</div>
</div>
<div class="col-md-3">
<div class="card card-inverse card-info text-center">
<img class="card-img-top" src="img/card4.jpg" alt="Card image cap">
<div class="card-block">
<h4 class="card-title">This is Card #4</h4>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<a href="http://v4-alpha.getbootstrap.com/components/card/" class="btn btn-primary">Learn More</a>
</div>
</div>
</div>
</div>
Check out my JSFIDDLE: https://jsfiddle.net/a9wav5g1/1/
Jede Idee ??? Wie behebe ich das?
Warum verwenden Sie nicht '.col-xs' class und'.col-sm' class für mobile und tablet devices –
@Amit singh: Kannst du mir ein paar Beispiele für meine Handycodes zeigen? –