定位

定位属性: position: absolute; 参数说明: static 默认、无定位 relative 相对定位、相对当前父标签定位 absolute 绝对定位,相对有relative属性父标签定位,或 相对body定位 fixed 相对浏览器窗口定位 inherit 从父标签继承 注:以下属性 position: static 下无效 相对父元素左边边距:() left 5px; /*或 5%*/ 相对父元素右边边距: right 5px; /*或 5%*/ 相对父元素上边边距: top 5px; /*或 5%*/ 相对父元素下边边距: bottom: 5px; /*或 5%*/ 重叠定位: z-index: -1;