http://dentaliran.ir/back-final-mata.gif把旁边的对方,但左边和右边的div 3个格必须重复到浏览器的边缘
上面的图像是一个网站的标题, 你可以看到它的3部分 离开 中心 权
我们怎样才能把这三部分放在3格中,但左右部分必须重复到浏览器的边缘?
固定宽度,我们可以放三死彼此相邻像这样:
#wrapper
{
width:1000px;
margin:0 auto;
}
#left
{
background:url(pics/left.jpg) repeat-x;
height:192px;
width:100px;
float:left;
}
#center
{
background:url(pics/center.gif) no-repeat;
height:178px;
width:800px;
float:left;
}
#right
{
background:url(pics/right.jpg) repeat-x;
height:192px;
width:100px;
float:left;
}
,但左,右都没有固定的宽度,必须重新无限时什么?
非常感谢
结果是什么,我想 – user3250818
很高兴听到它!谢谢你,祝你好运! –