clear7

导航

2018年10月26日 #

form

摘要: 阅读全文

posted @ 2018-10-26 17:07 clear7 阅读(83) 评论(0) 推荐(0) 编辑

position三种属性的区别

摘要: 1、static(静态定位):默认值。没有定位,元素出现在正常的流中(忽略 top, bottom, left, right 或者 z-index 声明)。 2、relative(相对定位):生成相对定位的元素,通过top,bottom,left,right的设置相对于其正常(原先本身)位置进行定位 阅读全文

posted @ 2018-10-26 17:02 clear7 阅读(257) 评论(0) 推荐(0) 编辑

sticky

摘要: 最近有点忘了position几个取值的内容,在这里简单总结一下。 position的含义是指定位类型,取值类型可以有:static、relative、absolute、fixed、inherit和sticky,这里sticky是CSS3新发布的一个属性。 1、position: static sta 阅读全文

posted @ 2018-10-26 16:58 clear7 阅读(170) 评论(0) 推荐(0) 编辑