html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td { margin: 0; padding: 0; border: 0; outline: 0; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; width: 100%; height: 100%; } :focus { outline: 0; } body { line-height: 1; color: black; background: white; } ol, ul { list-style: none; } table { border-collapse: separate; border-spacing: 0; } caption, th, td { text-align: left; font-weight: normal; } blockquote:before, blockquote:after, q:before, q:after { content: ""; } blockquote, q { quotes: "" ""; } fieldset,img { border:0 } .al { text-align: left; } .ar { text-align: right; } .ac { text-align: center; } .lc { margin: 0 auto; } .fl, .il .fl { float: left; } .fr, .il .fr { float: right; } .fc, .il .fc { float: none; clear: both; } .rel { position: relative; } .abs { position: absolute; } .il { list-style: none; } .il li { float: left; } .clearfix:after { content: " "; display: block; clear: both; height: 0; } .clearfix { zoom: 1; }
.container{ width:100%; overflow:hidden; } .header { background: #aaa; height: 66px; } .content{ overflow: hidden; } .aside{ float: left; width: 200px; background: #eee; } .main{ margin-left: 200px; background-color: #ddd; }
<!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> <link rel="stylesheet" href="css/reset.css"> <link rel="stylesheet" href="css/index.css"> </head> <body> <div class="container"> <div class="header"> header </div> <div class="content clearfix"> <div class="aside"> aside </div> <div class="main"> aside </div> </div> </div> </body> </html>
相关推荐
呵呵 很好哦 css自适应宽度的按钮!
使用css实现的三列布局,中间一列宽度固定大小,两边宽度要自适应。
div+css菜单导航布局自适应宽度,纯div+css
纯CSS实现三列DIV等高布局.html纯CSS实现三列DIV等高布局.html纯CSS实现三列DIV等高布局.html纯CSS实现三列DIV等高布局.html
CSS自适应宽度按钮! 很值得下载看看!资源免费,大家分享!!
div宽度自适应布局(左边自适应)
自适应三列等高布局旧版flex.html
CSS自适应宽度按钮
圆角按钮宽度自适应 自适应宽度的CSS圆角背景的按钮
CSS判断不同分辨率浏览器(显示屏幕)显示不同宽度布局CSS3技术支持IE6到IE8。将用到css3 @media样式进行判断,但IE9以下版本不支持CSS3技术,这里DIVCSS5给大家介绍通过JS实现低版本的浏览器也支持CSS3实现实用布局
网页设计与制作教程课本实例(html+css+javascript)第二版
div+css模板布局 右侧固定,左侧自适应
模仿苹果导航条效果,背景图片大小适中适合导航文字宽度
用JS+CSS来实现DIV层自适应高度,无论你的浏览器大小如何变化都会自适应高度, 调节宽度同样的道理
最近做了个项目,其中有项目需求是需要div根据内容进行宽度自适应。下面小编给大家分享一段代码关于CSS 实现div宽度根据内容自适应 的相关知识,需要的朋友参考下
主要为大家介绍了CSS实现自适应宽度的菜单按钮效果代码,实例分析了css针对页面自适应宽度的相关设置技巧,具有一定参考借鉴价值,需要的朋友可以参考下
纯CSS圆角自适应宽度的导航菜单,水平布局的网站菜单,这个菜单的亮点有两个:1、圆角,2、宽度自适应。不管各个菜单项的菜单文字有多长,该项菜单的背景始终自动适合这种变化,完美的宽度自适应特效,值得推荐。
主要介绍了css实现右侧固定宽度 左侧宽度自适应,这种布局比较常见,博客园很多默认主题就是这种。一般情况下,这种布局中宽度固定的区域是侧边栏,而自适应的区域是主体内容区——相信把侧边栏搞成自适应的人很少吧...
css+div自适应窗口宽度css+div自适应窗口宽度css+div自适应窗口宽度css+div自适应窗口宽度css+div自适应窗口宽度
自适应宽度的JS+css标签Tab导航,网页设计制作代码