課程
/前端開發
/JavaScript
/瀑布流布局
如題,試了很多的box 都是201 代碼跟老師的完全一樣
2015-12-02
源自:瀑布流布局 2-3
正在回答
給一下html結構看一下。
*{ margin:0; padding:0; } #main{ position:?relative; } .box{ padding:15px?0?0?15px; float:?left; } .pic{ padding:10px; border:1px?solid?#ccc; border-radius:5px; box-shadow:0?0?5px?#ccc; } img{ width:165px; height:?auto; }
看看是不是boder造成的
GNEZ 提問者
舉報
瀑布流布局是網站比較流行的一種布局方式,教你實現三大方式
3 回答老師固定main盒子寬度的算法為什么行的通?
2 回答為什么我的這個outerWidth()獲取的是可視窗口的寬度?
2 回答main的寬度與clientWidth有什么區別???
1 回答main寬度的問題
1 回答怎么計算id為main的總高度啊
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2015-12-02
給一下html結構看一下。
2015-12-02
2015-12-02
看看是不是boder造成的