すべてのデバイスでヘッダ画像を全幅にすることに問題がありました。バックグラウンドサイズを100%に変更してこれを修正しました。画像の上部と下部に黒いバーが表示され、画像からコンテンツが分離されます。これを解決する最善の方法は何ですか?ブートストラップで応答幅の広い画像を取得する
//Color Pallette
$backgroundWhite: #d1d1d1
$spectrumRed: #a10019
$darkestGrey: #2f2f2f
$darkGrey: #252525
$grey: #6e6e6e
//Fonts
$raleway: 'Raleway', sans-serif
html,body
overflow-x: hidden
height: 100%
margin: 0
padding: 0
li
font-family: $raleway
.container-fluid
background-color: #333
border-bottom: 4px solid $spectrumRed
#navbarItem:hover
color: $backgroundWhite
#active
background-color: $spectrumRed
color: $backgroundWhite
.wide (THIS IS THE IMAGE CONTAINER DIV)
margin-top: -60px
background: #000 url("/img/9114.jpg") center center
background-size: 100%
background-repeat: no-repeat
width: 100%
height: 80%
display: inline-block
#modelName
background-color: $darkGrey
color: $backgroundWhite
width: 100%
margin-top: -35px
display: inline-block
border-bottom: 10px solid $spectrumRed
#modelName h1
font-family: $raleway
font-weight: 600
そして、私の問題のスクリーンショット:
'background-size:cover'? – BenM