<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>無標(biāo)題文檔</title><style type="text/css">*{margin:0; padding:0;}.div{margin:0 auto}#left{float:left;width:110px; border:1px solid red;}#mid{border:1px solid #999;}</style></head><div>?<img src="http://img1.sycdn.imooc.com//5369cd6e0001a15b09700088.jpg" width="970" height="88" />? <img src="http://img1.sycdn.imooc.com//5369cd0e00011e3901090487.jpg" width="109" height="487" />? ?<img src="http://img1.sycdn.imooc.com//5369cd3c00013e9e06490439.jpg" width="649" height="439" />? <p>歡迎使用金山軟件出品的愛詞霸,在線查詢你英語詞匯、句子釋義</p>? <img src="http://img1.sycdn.imooc.com//5369cd540001d8e101770329.jpg" width="177" height="329" />?</div></body></html>
2 回答

hulukid
TA貢獻(xiàn)190條經(jīng)驗(yàn) 獲得超40個(gè)贊
一樣的,你原本是四個(gè)div,現(xiàn)在只是用外面的一個(gè)div把四個(gè)包在里面。
top: with 100%, height 自定義
然后clear:both
left,mid, right都設(shè)置float:left
添加回答
舉報(bào)
0/150
提交
取消