随笔分类 - CSS
对某个属性的全方位描述或者新发现到很好玩的属性
摘要:水平垂直居中 / position 元素已知宽度 / .box { background color: FF8C00; width: 300px; height: 300px; position: relative; } .content { background color: F00; width
阅读全文
摘要:CSS position属性用于指定一个元素在文档中的定位方式。top,right,bottom和left属性则决定了该元素的最终位置。 常见语法 static | relative | absolute | sticky | fixed static 默认值。没有定位,元素出现在正常的流中(忽略
阅读全文

浙公网安备 33010602011771号