Ich benutze Bootstrap und habe ein Bild 1920x1280. Es reagiert derzeit nur bis zu einer Breite von 1000 px und hört von dort aus auf zu schrumpfen. Breite unter 1000 px, beginnt die Seite des Bildes zu schneiden. Ich brauche das volle Bild, um auf jedem Gerät sichtbar zu sein. Ich füge das Bild über die CSS-Hintergrund-URL hinzu. Gibt es einen Weg dahin? Hinzugefügt den relevanten Code unten. Das Bild wird in die ID 'Intro' eingefügt.Bild nicht vollständig reagiert
Bild
HTML
<div id="intro">
<div class="intro-body">
<div class="container">
<div class="row">
<div class="col-md-10 col-md-offset-1">
<h1 style="color: #000000">Title<span class="brand-heading">Quote</span></h1>
<p style="color: #000000" class="intro-text">Short description</p>
<a href="#about" class="btn btn-default page-scroll">Learn More</a> </div>
</div>
</div>
</div>
</div>
CSS
#intro {
display: table;
width: 100%;
height: auto;
padding: 100px 0;
text-align: center;
color: #fff;
background: url(../img/intro-bg.jpg) no-repeat center center fixed;
background-color: #000;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
#intro .intro-body {
display: table-cell;
vertical-align: middle;
}
#intro .intro-body H1 {
font-size: 76px;
font-weight: 700;
color: rgba(255,255,255,0.8);
text-transform: uppercase;
}
@media(min-width:768px) {
#intro {
height: 100%;
padding: 0;
}
#intro .intro-body .intro-text {
font-size: 18px;
letter-spacing: 1px;
margin-bottom: 100px;
color: rgba(255,255,255,0.9);
}
}
Das folgende ist nur eine Notiz und hat nichts mit der Frage zu tun: 3-stellige Hex-Farbwerte sind fehlerhaft in einigen älteren Versionen von Internet Explorer. – Pyromonk