Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
为什么我的流体 div 会喷出来?
http://jsfiddle.net/NF2T2/
谢谢你的帮助!
抱歉,我对 CSS/HTML 很陌生。
可能你的计算是错误的。
通过将其设置为零来取出边距,使 div 正确对齐。这意味着您的百分比加起来没有达到 100%
#div_left{ float:left; width:48%; margin-left:0; //this was 3.6% height:auto; }