浮動失效以及浮動後盒子問題

1、浮動失效緣由 (1)元素浮動,脫離文檔流,覆蓋常規元素 代碼:css <style> .div1{ float:left; width:250px; height:250px; background-color:red; } .div2{ width:250px; height:250px; background-color:green; } </style> </head> <body>
相關文章
相關標籤/搜索