Blogger Information
Blog 14
fans 0
comment 0
visits 9548
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
相对定位和绝对定位7.5
耿玉洁的博客
Original
619 people have browsed it

相对定位没有脱离文档流, 是以元素在文档流中的原始位置为参照物进行定位的

.box1{
   position: relative;
   left: 150px;

绝对定位脱离文档流,但是绝对地位需要一个父级作为定位赋值

.box1{
   position: absolute;
   left: 150px;
}


Correction status:qualified

Teacher's comments:合并发布
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post