0
任何想法,爲什麼當我縮小網站4div總是下到下一行。演示:http://autovin.org/tp/當我縮小web 4 div去下一行
/* Reset All Styles */
* {padding:0px; margin:0px;font-family:Segoe UI;}
/* Background */
body {background:url(images/grids.gif) white;}
/* Wrapper */
.wrapper {width:998px;margin:0 auto;}
/* Header */
.header {padding:20px 0 20px 0;}
/* Navigation */
.nav {background:#82b2c9;color:white;}
/* Content */
.content {padding:10px 0;overflow:hidden;}
/* Box */
.box {width:240px; margin:0 10px 10px 0;border:1px solid black;float:left;}
.box:nth-child(4n){margin:0;}
/* Pagination */
.pagination {clear:both;}
/* Footer */
.footer {background:#82b2c9;color:white;}
大概像素四捨五入問題。如果你把.wrapper做得更寬一些,這是否有幫助? –
我需要比所有好的50px更大,其他都是一樣的。 – Aivaras