Ich habe Probleme, herauszufinden, Mobile-Layout-Problem. Wenn ich meine Website über ein Handy ansehe, verkleinert sich der Bereich entsprechend, anstatt das Bild in voller Breite anzuzeigen und gestapelt zu werden. Wie repariere ich es, damit die Boxen bei der Betrachtung über das Handy übereinander liegen? Ich benutze Bootstrap.Mobile Ansicht für Abschnitt sieht komisch aus
<section class="health" id="health">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="section-title st-center">
<h3>Places to exercise</h3>
</div>
<div class="grid">
<figure class="portfolio-item">
<img src="images/eastcoastpark.jpg" alt="east coast park"/>
<figcaption>
<h2>Nice <span>Lily</span></h2>
<p>Lily likes to play with crayons and pencils</p>
</figcaption>
</figure>
<figure class="portfolio-item">
<img src="images/eastcoastpark.jpg" alt="east coast park"/>
<figcaption>
<h2><span>EAST COAST PARK</span></h2>
<p>Long stretch of running and cycling/skating paths, it’s one of Singapore’s best spots to go jogging or bike riding.</p>
</figcaption>
</figure>
<figure class="portfolio-item">
<img src="images/eastcoastpark.jpg" alt="east coast park"/>
<figcaption>
<h2>Nice <span>Lily</span></h2>
<p>Lily likes to play with crayons and pencils</p>
</figcaption>
</figure>
<figure class="portfolio-item">
<img src="images/eastcoastpark.jpg" alt="east coast park"/>
<figcaption>
<h2>Nice <span>Lily</span></h2>
<p>Lily likes to play with crayons and pencils</p>
</figcaption>
</figure>
<figure class="portfolio-item">
<img src="images/eastcoastpark.jpg" alt="east coast park"/>
<figcaption>
<h2>Nice <span>Lily</span></h2>
<p>Lily likes to play with crayons and pencils</p>
</figcaption>
</figure>
<figure class="portfolio-item">
<img src="images/eastcoastpark.jpg" alt="east coast park"/>
<figcaption>
<h2>Nice <span>Lily</span></h2>
<p>Lily likes to play with crayons and pencils</p>
</figcaption>
</figure>
</div>
</div>
</div>
</div>
</section>
.health { padding: 2em; } .grid Abbildung { Position: relativ; Schwimmer: links; Überlauf: versteckt; Textausrichtung: Mitte; Cursor: Zeiger; Breite: 33,33333333%; } .grid Abbildung img { Position: relativ; Anzeige: Block; min-Höhe: 100%; max-Breite: 100%; Opazität: 1; -Webkit-Übergang: Opazität 0,3 s, -Webkit-Transformation 0,3 s kubisch-Bezier (0,645, 0,045, 0,355, 1); Übergang: Opazität 0,3 s, Transformation 0,3 s kubisch-Bezier (0,645, 0,045, 0,355, 1); } – xtjnrchris
Eer, vielen Dank für Ihre CSS, aber bitte fügen Sie es in den eigentlichen Fragetext und nicht als Kommentar - einige Leute werden nicht so weit lesen, und Kommentare können sehr leicht verloren gehen. – Serlite