摘要:
box1 box2 box3 box41. 所有div为block, 且默认position:static2. position: fixed#box2 { position: fixed; right: 50px; bottom: 0px;}box2脱离文档流,相对浏览器窗口进行定位,拖动窗口,也保持右下侧的位置不变。z-index属性有效。3. position: absolute;#box3 { position: absolute; left: 30px; top: 100px;}box3 脱离文档流,相对于父级元素定位,若上级元素的position为fixed或abso... 阅读全文