課程
/前端開(kāi)發(fā)
/HTML/CSS
/初識(shí)HTML(5)+CSS(3)-升級(jí)版
做成左右結(jié)構(gòu),倆個(gè)背景圖片中間有空隙
2016-12-04
源自:初識(shí)HTML(5)+CSS(3)-升級(jí)版 7-3
正在回答
div1{float:left;} div2{float:right}
<style?type="text/css"> div{height:200px;width:100%;} .d1{ width:49%; float:left; background-image:url(xxxxxxx1) } .d2{ width:49%; float:right; background-image:url(xxxxx2) } </style> <div> ????<div?class="d1"></div> ????<div?class="d2"></div> ?</div>
<div>
<img src="1.jpg" class="test">
<img src="2.jpg" class="test">
</div>
然后在樣式中插入
.test{
margin: 20px;
}
可以再說(shuō)的詳細(xì)點(diǎn)嗎
weibo_對(duì)方拒絕您的請(qǐng)求_0
使用margin元素屬性
舉報(bào)
HTML(5)+CSS(3)基礎(chǔ)教程8小時(shí)帶領(lǐng)大家步步深入學(xué)習(xí)標(biāo)簽用法和意義
2 回答左右左右左右左右左右左右左右左右
2 回答要想把文字寫(xiě)成四列咋做
3 回答填充代碼一定要上右下左排列嗎?
4 回答要想把圖片放在一行里,如何做
1 回答這行代碼如何縮寫(xiě)
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購(gòu)課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2016-12-04
2016-12-04
2016-12-04
<div>
<img src="1.jpg" class="test">
<img src="2.jpg" class="test">
</div>
然后在樣式中插入
.test{
margin: 20px;
}
2016-12-04
可以再說(shuō)的詳細(xì)點(diǎn)嗎
2016-12-04
使用margin元素屬性