相对布局: 相对是是自己
例如:
position: relative;
left:2%; // 相对自己离左边 2%
bottom: 45%; 相对自己离下面 45%
绝对布局:相对的是父元素(父元素必须设置布局)、
position: absolute;
left:2%; // 相对自己离左边 2%
bottom: 45%; 相对自己离下面 45%
居中显示:
display: flex;
align-items: center;
justify-content: center;