<div class="left"></div>
<div class="right"></div>
CSS:
.left{
position:fixed
left:0
width:200px
height:200px
background:red
bottom:0
}
.left{
position:fixed
right:0
width:200px
height:200px
background:red
bottom:0
}
首先设置一个大层,这个层包含页面的所有内容,然后设置这个大层的左右边距为百分值就可以了 追问: 稍等,回来一定给个人觉得这个行得通。还有一个问题。如果间距产生的缝隙能不能通过设置背景图片来解决? 回答: 你可以为body设置 背景图像 ,然后左右的间距就不会产生缝隙了啊