随笔 - 28, 文章 - 0, 评论 - 3, 引用 - 0
数据加载中……

css布局:侧边固定长度,内容自动适应

<!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">
 <!--
 #wrap{background:#000;}
 #content{margin-left:250px;height:1000px;background:#963;}
 #sideber{width:240px;float:left;height:1000px;background:#369;}
 -->
 </style>
</head>
<body>
<div id="wrap">
<div id="sideber">&nbsp;</div> <!--要让浮动元素放前面-->
<div id="content">&nbsp;</div>
</div>
</body>
</html>

posted on 2010-03-22 10:44 Angle Wang 阅读(474) 评论(0)  编辑  收藏 所属分类: CSS


只有注册用户登录后才能发表评论。


网站导航: