第八章 定位网页元素 一,定位 position属性有以下属性值: static:默认值,没有定位 relative:相对定位 absolute:绝对定位 fixed:固定定位 1.static 当我们没有设置,或者设置为static的时候,会以标准文档流的形式排列。 2.relative relative属性值: 相对自身原来位置进行偏移 偏移设置:top、left、right、bottom 示例: #third { background-color:#C5DECC; border