<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 "/>
The method of <TITLE>DIV+CSS two-column adaptive height-htmer</title>
<style type= "Text/css" >
. Main{500px;overflow:hidden;}
. Left{width:100px;background-color: #0CC; margin-bottom:-9999px;padding-bottom:9999px;float:left;}
. Right{width:400px;background-color: #F00; float:left;}
</style>
<body>
<div class= "Main" >
<div class= "Left" > Content 1</div>
<div class= "Right" > Contents 1<br/> Right content 2<br/> Right content 3</div>
</div>
</body>
Description: In fact, to solve the div+css about two columns height adaptive method is to pay attention to two points: first, the outermost plus overflow:hidden, and then add margin-bottom:-9999px;padding-bottom:9999px on the left column; Can. Original article: http://www.blogbus.com/ada-life-logs/231591213.html