AutoCAD 3DMAX C语言 Pro/E UG JAVA编程 PHP编程 Maya动画 Matlab应用 Android
Photoshop Word Excel flash VB编程 VC编程 Coreldraw SolidWorks A Designer Unity3D
 首页 > css教程

常用的网页布局方法单侧固定另一侧适应充满

51自学网 http://www.wanshiok.com
网页布局,单侧固定


复制代码
代码如下:

<!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">
body
{
margin:0;
padding:0;
word-wrap:break-word;
background-color:#CCC;
}
.main
{
margin:0px 50px 0px 50px;
min-height:600px;
}

.left_nav
{
float:left;
position:absolute;
margin-left:0px;
width:300px;
background-color:#F96;
min-height:600px;
}
.right_zone
{
margin:0px 0px 0px 300px;
min-height:600px;
background-color:#69C;
}
.main_2
{
margin:0px;
width:100%;
min-height:600px;
background-color:#C60;
}
</style>
</head>
<body>
<div class="main">
<div class="left_nav">ddd

</div>
<div class="right_zone">
<div class="main_2">
<iframe width="100%" height="600" frameborder="0" src="frame_child.html" ></iframe>
</div>
</div>
</div>
</body>
</html>


网页布局,单侧固定  
上一篇:纯CSS实现菜单、导航栏的3D翻转动画效果  下一篇:css3和jquery实现自定义checkbox和radiobox组件