摘要: 定位 相对定位 <div class="box1" >1</div> <div class="box2">2</div> <div class="box3">3</div> body{ font-size: 30px; } .box1,.box2,.box3{ width: 200px; heigh 阅读全文
posted @ 2021-04-03 04:50 Calculus9 阅读(57) 评论(0) 推荐(0) 编辑
摘要: 浮动 <!-- 浮动:简单来说,通过浮动可以使一个元素向其父元素的 左侧或者右侧移动 float(气球) 可选值: none 默认值,不浮动 left 向左浮动 right 向右浮动 --> <div class="box1"></div> .box1{ width: 200px; height: 阅读全文
posted @ 2021-04-03 03:50 Calculus9 阅读(85) 评论(0) 推荐(0) 编辑