レスポンシブ画像をヘッダに追加したい。それは私の画面上で完璧に見えますが、私は画面のサイズを変更すると、それは定位置外です。CSS3でレスポンシブCSSポジショニング画像を作成する方法
HTML:
<section id="cover">
<div class="container">
<div class="row text-center">
<div class="col-sm-12 character">
</div>
</div>
</div>
</section>
CSS:
#cover {
background: url('../img/coverBg.png') no-repeat center center;
background-size: cover;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
-webkit-border-bottom-right-radius: 400px 100px;
-webkit-border-bottom-left-radius: 400px 100px;
margin-bottom: 70px;
position: relative;
}
.character {
background: url("../img/character.png") no-repeat center center;
width: 170px;
height: 245px;
top: 67px;
}
but how look on other screen sizes
「」使用 –
私は試しましたが、まだ動作しません。画面サイズを変更すると、文字/マスコットがこのようなヘッダーから降りています:https://i.imgur.com/pFmpy8K.png –
@NurçinÖzerフルコードで質問を更新できるか –