<div position=relative>是什么的相对位置


div position=relative
是相对于上一个div的左上角还是左下角??
position=relative 就是说声明一个固定的雀纯陪位,并不是说相对于上一个div的左上角还是左下角,想要顷蠢相对于上一个div的左裤哪上角还是左下角,就得这样写<div position=relative left=200 top=200>
是相对对齐的意思,出现在"文档流"里他该出现的位置,1,2,3,4,5他是5,那他就在5那个位置,加个top:200;就是出腊旅搏现在距5下200的地方,以他该在的位置“5”为参照。
<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.
<div id="aaaaaaa">

<div position=relative>该卜差告DIV相对于上庆闭面那个DIV aaaaaa位置型明</div>

</div>

body td都同理。