...对于静态定位(static positioning),position: static,盒的位置是常规流布局里的位置; 对于相对定位(relative positioning),position: relative,盒偏移位置由这些属性定义top,bottom,leftandright。
基于3个网页-相关网页
令我惊讶的是最后被定位相对于在树的开始,而不是父分区相对于相对定位的分区包含它。
To my surprise it ended up being positioned relative to the parent div at the start of the tree rather than relatively to the relatively-positioned div which contains it.
表格是相对于容器而不是页面来定位的。
The tables are positioned relative to the container, not to the page.
第一个规则确保可以相对于包含它们的li元素对嵌入的UL元素进行定位。
The first rule makes sure that we can position the embedded ul elements relative to the LI elements that contain them.
应用推荐