第9章:浮动、定位与视觉格式化模型

9.3 定位

9.3.3 相对定位

段落1中的文字

段落2中的文字

段落1中的文字

段落2中的文字

水平方向

left为auto,则left = -right

left为auto,则left = -right

left: 30px, right强制为-30px

垂直方向

top: 20px, bottom强制为-20px

返回代码目录