2011-10-14 16:29:08 阅读5 评论0 142011/10 Oct14
2011-8-4 12:31:00 阅读11 评论0 42011/08 Aug4
#container {margin:0 auto; width:900px;}
#header { height:100px; background:#6cf; margin-bottom:5px;}
#menu { height:30px; background:#09c; margin-bottom:5px;}
#mainContent { background:url(bg.gif) right 0 repeat-y; overflow:auto;zoom:1; margin-bottom:5px;}
#sidebar { float:right; width:200px; background:#9ff;}
2011-8-3 15:33:28 阅读25 评论0 32011/08 Aug3
body { margin:0; font-size:12px;}
#main { margin:0 auto; width:1002px;}
ul { list-style:none;}
a{text-decoration: none;}
#nav { height:66px; background:url(images/nav_bg.gif) 0 0 repeat-x; margin-bottom:8px;}
#nav_l { float:left; height:66px; width:5px; overflow:hidden; background:url(images/nav_bg.gif) 0 -66px no-repeat; margin-right:10px;}
#nav_r
2011-7-23 21:49:57 阅读4 评论0 232011/07 July23
2011-7-15 16:58:42 阅读11 评论0 152011/07 July15
能自适应高度了,,但问题是如果 Layer - left的内容很多,超过了父级div定义的300px之后,会发现父级div不会自适应高度了,,而且right的高度还是保持300不会增加,,
我现在的问题就是,,当left的内容超过父级定义的300之后怎么样能让父级自适应left的高度,同时right也同高,,(left的高度是不确定的,)
<style type="text/css" media="screen">
<!--
#main {width:500px;_height:300px;min-height:300px; background:#aaffaa; border:1px solid #600;