1、position(页面分层)
(1)fiexd将标签固定在页面的某个位置
position属性:top,left,right,bottom
(2)relative+absolute配合使用,定位到父标签框的相对位置
<div style="position: relative;background-color: #339ba3;height: 200px;width: 500px;border: 1px solid red;margin: 0 auto"> <div style="position: absolute;bottom: 0;left: 0;width: 50px;height: 50px;background-color: #0f0f0f"></div> </div>