0
我想將響應式圖像添加到我的標題中。它在我的屏幕上看起來很完美,但是當我改變屏幕尺寸時,它已經不在位。如何在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你能否以全碼代碼更新你的問題 –