百度
360搜索
搜狗搜索

css网页布局代码,css实现布局时可以用的几个技巧(代码)详细介绍

* html #container{ height:1%; /* So IE plays nice */ } html{ height: 100%; } body{ height: 100%; margin:0; } #container{ background-color:#0ff; overflow:hidden; height: 100%; padding-right:220px; /* 宽度大小等与边栏宽度大小*/ } #content{ background-color:yellow; width:100%; float:left; height: 100%; } #sidebar{ background-color:#f00; width:220px; float:left; height: 100%; margin-right:-220px; }

Main content section

阅读更多 >>>  css中background属性,css中background属性是用于设置

文章数据信息:

本文主要探讨:"css网页布局代码,css实现布局时可以用的几个技巧(代码)", 浏览人数已经达到35次, 首屏加载时间:1.605 秒。