我面臨這個(gè)問題,div 沒有顯示在左側(cè),而是顯示在中間。正如您在圖像中看到的那樣,白色 div 顯示在中間,我需要將其顯示在左側(cè)。網(wǎng)頁 <div class="slide"> <div class="first-layer"> <div> </div> </div> </div>CSS.slide{ background-color: #f4525e;}.first-layer{ background-color: #FFFFFF; height: 100%; width: 93%; position:relative; border-bottom-right-radius: 20%; border-top-right-radius: 5%;}我也很想像這樣做邊界半徑,但它不是
1 回答

慕哥6287543
TA貢獻(xiàn)1831條經(jīng)驗(yàn) 獲得超10個(gè)贊
設(shè)置margin-left: 0;為.first-layer
.slide {
height: 500px;
background-color: #f4525e;
}
.first-layer {
background-color: #FFFFFF;
height: 100%;
width: 93%;
margin-left: 0;
position: relative;
border-bottom-right-radius: 20%;
border-top-right-radius: 5%;
}
<div class="slide">
<div class="first-layer">
<div>
</div>
</div>
</div>
- 1 回答
- 0 關(guān)注
- 168 瀏覽
添加回答
舉報(bào)
0/150
提交
取消