如题,求解
[code="html"]
[color=red]基本格局如上,固定分辩率是没有问题的,关键是适应不同的分辩率。望牛人不吝赐教[/color] :D
那就得动态读取分辩率,再进行动态设置了
你把你现在的CSS贴上来看看。
一般的CSS流体布局都可以解决这个问题。
从你的HTML来看,左边大小应该是固定的,这种情况下你可以用:
1) 绝对定位
#left {
position : absolute;
left : 0;
right : 200px;
top : 0;
bottom : 0;
}
#right {
position : absolute;
left : 210px;
right : 0;
top : 0;
bottom : 0;
}
2) 100%宽度加上负margin
基本的思路是#left向左浮动, 固定宽度;#right宽度100%,但是margin是负值,值为#left的宽度。