81,094
社区成员
发帖
与我相关
我的任务
分享
绝对定位?表示前段渣得不行
你把DIV设置成position:absolute;margin-top:-100px; 你这也来调整看看。
绝对定位?表示前段渣得不行
margin-left:1PX 距离左边 1PX
margin-right:2 PX 距离右边 2PX
margin-top: 3PX 距离顶部 3PX
margin-bottom:4px; 距离底部 4
margin: 1PX 全部为1PX [code=html]
<div style=" background-color:#0000FF; float:left; width:240px; margin-left:20px;">与左边相距20px;</div>
[/code]就算你放到倒数第二行了,那用户把浏览器的大小变化了。那你这个下面的图片需要上下位置变吗?