84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
然内联元素可以横向并排布局,为什么不把块状元素通过display:inline转换成内联元素,而要用到float:left/right呢? 这两种方式都可以达到横向并排布局的效果啊!为什么要多出一个float?
Block elements are converted to inline elements and float:. . Floating layout? -PHP Chinese website Q&A-Convert block elements to inline elements and float:. . Floating layout? -PHP Chinese website Q&A
Please watch and learn.
如果存在后期维护,把body这种容器元素的width改变了,那么会出现:float:自我适应度高,代码可维护性好。inline:极可能再次更改,可维护性差。
Block elements are converted to inline elements and float:. . Floating layout? -PHP Chinese website Q&A-Convert block elements to inline elements and float:. . Floating layout? -PHP Chinese website Q&A
Please watch and learn.
如果存在后期维护,把body这种容器元素的width改变了,那么会出现:
float:自我适应度高,代码可维护性好。
inline:极可能再次更改,可维护性差。