摘要:
<style> .box1{ width: 600px; height: 600px; background-color: #bfa; position: relative ; } .box2{ width: 100px; height: 100px; background-color: tomat 阅读全文
posted @ 2022-03-29 23:40
故渊ccx
阅读(85)
评论(0)
推荐(0)
摘要:
一、定位 position 定位: -是一种更高级的布局手段; -使用 position 属性来设置; 可选值: static默认值;(不开启定位) relative 开启相对定位 absolute 开启绝对定位 fixed 开启元素的固定定位 sticky 开启元素的粘滞定位 二、 相对定位 po 阅读全文
posted @ 2022-03-29 23:31
故渊ccx
阅读(86)
评论(0)
推荐(0)
摘要:
不管是遇到外边距重叠或者高度塌陷问题,都可以用 clearfix 解决: <style> .clearfix : : before , .clearfix : : after{ display : table ; content : ' ' ; clear : both ; } </style> 原 阅读全文
posted @ 2022-03-29 23:08
故渊ccx
阅读(162)
评论(0)
推荐(0)
浙公网安备 33010602011771号