clear:both

原文
http://www.divcss5.com/rumen/r424.shtml
比如一个大对象内有2个小对象使用了css float样式为了避免产生浮动,大对象背景或边框不能正确显示,这个时候我们就需要clear:both清除浮动。
·
·

清除float常用方法

(:after和clear:both)

https://www.cnblogs.com/hubl/p/5763225.html
·
·

zoom:1

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_43322208/article/details/84672312
今日推荐