<div position=relative>是什么的相对位置
展开全部
是相对对齐的意思,出现在"文档流"里他该出现的位置,1,2,3,4,5他是5,那他就在5那个位置,加个top:200;就是出现在距5下200的地方,以他该在的位置“5”为参照。
<div position=relative>这是html里的用法;行内用法,目前可以这样写,严格xhtml及以后的网页发展都不允许这样写了.
这是行内的用法<div style="position:relative;top:200px;">
<div position=relative>这是html里的用法;行内用法,目前可以这样写,严格xhtml及以后的网页发展都不允许这样写了.
这是行内的用法<div style="position:relative;top:200px;">
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
static Default. The element is positioned according to the normal flow of the page. The Top and Left attributes are ignored. If the object is anchored inline, which only happens in Microsoft Word, this value is used.
absolute The element is positioned relative to the parent, using the Top and Left attributes. This value is used by Microsoft Word and Microsoft Excel floating objects, and Microsoft PowerPoint slides.
relative The element is positioned according to the normal flow of the page, but the Top and Left attributes are used. The overlap of overlapping elements is governed by the Z-Index attribute.
absolute The element is positioned relative to the parent, using the Top and Left attributes. This value is used by Microsoft Word and Microsoft Excel floating objects, and Microsoft PowerPoint slides.
relative The element is positioned according to the normal flow of the page, but the Top and Left attributes are used. The overlap of overlapping elements is governed by the Z-Index attribute.
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐于2016-06-07 · 知道合伙人互联网行家
关注
展开全部
<div id="aaaaaaa">
<div position=relative>该DIV相对于上面那个DIV aaaaaa位置</div>
</div>
body td都同理。
<div position=relative>该DIV相对于上面那个DIV aaaaaa位置</div>
</div>
body td都同理。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询