自适应宽度,左右两栏固定宽度,中间栏优先加载
2012-04-21 10:46
357 查看
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>无标题文档</title> <style type="text/css"> html,body{ width:100%; height:100%; margin:0; padding:0; } .content{ width:100%; height:100%; position:relative; background:#000 url(background.jpg) no-repeat; overflow:hidden; } .left{ width:200px; height:100%; background:#8CCA12; position:absolute; z-index:3; top:0; left:0; } .center-ct{ height:100%; background:#CCCCCC; position:absolute; z-index:1; top:0; left:0; margin:0; width:100%; } .center{ margin:0 200px; } .right{ width:200px; height:100%; background:#6600FF; position:absolute; z-index:2; right:0; top:0;} </style> </head> <body> <div class="content"> <div class="center-ct"> <div class="center"> center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center center </div> </div> <div class="left">left</div> <div class="right">right</div> </div> </body> </html>
相关文章推荐
- 左右固定,中间自适应布局(方法5以后进阶,实现中间栏优先加载)
- 左右固定,中间自适应布局,中间栏优先加载
- 如何实现:左右固定,中间自适应布局,中间栏优先加载?
- 左右固定,中间自适应布局,中间栏优先加载
- css3布局-左右两栏固定宽度,中间栏优先加载
- 左右两列固定宽度,中间自适应布局
- 三列布局(左右固定宽度,中间自适应)
- CSS 左右固定,中间自适应宽度 及 左右自适应宽度,中间固定
- CSS_Layout三分栏__左右两栏宽度固定,中间自适应
- CSS三列布局之左右宽度固定,中间元素自适应问题
- 三列,左右两列宽度固定,中间宽度自适应
- 三列布局(左右宽度固定,中间自适应)的五种解决方案
- CSS实现左右栏宽度固定中间栏宽度变化且各栏高度自适应背景色不同的三栏布局
- CSS 三分栏_左右两栏宽度固定,中间自适应
- 【CSS】三列布局(左右div固定宽度,中间div随浏览器窗口自适应变化宽度)
- 【css】三栏,左右两栏固定,中间宽度自适应 ||| 三栏,高度自适应 有图片,高清,无码
- listView 三个空间,左右固定宽度,中间自适应处理
- 二、三栏布局(左右宽度固定,中间自适应宽度)
- 前端经典面试题之CSS实现三栏布局,左右宽度固定,中间宽度自适应
- 左右宽度固定 中间自适应撑满