摘要: 在需要清除浮动的盒子A前面写一个空白的div,里面什么都不需要写,只给个类名B,样式中写 .B:after{ Content:”.”; Clear:both; Display:block; Height:0; Visibility:hidden; ……消失却占用空间 } 加上这个之后。在A的样式中写上margin-top:多少px;就可以了 既有表单元素又有图片的时候之间会有三个像素的间距,给... 阅读全文
posted @ 2018-04-23 17:04 小松i 阅读(358) 评论(0) 推荐(0) 编辑