1. relative
div {
width: 100px;
height: 100px;
background: blue;
position : relative;
left: 50px;
top: 50px;
right: 70px;
bottom: 70px;
}
// 设置了相对定位,设置了 left, top 的话 ,元素相对与网页的最左最上为原点,向右为x轴(正),向下为y轴(正)做移动。
// 相对定位,设置了 right, bottom的话,元素相对于网页的最左最上为原点,向左为x轴(正),向上为y轴(正)做移动。