日期:2014-05-17  浏览次数:20661 次

纯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" />

<style>
html,body,tbody{margin:0;padding:0;}
#Body{overflow:hidden;padding:0;padding-left:180px;}

#Left,#Right{height:auto;margin-bottom:-32767px;padding-bottom:32767px;}
#Left{display:inline;float:left;width:180px;margin-left:-180px;background:#CCC;}
#Right{float:right;width:100%;background:#999;}

</style>
</head>

<body>
<div id="Body">
<div id="Left">asdfasdfasdfasdf<br><br></div>
<div id="Right"><br><br><br><br><br><br><br><br><br><br><br><br></div>
</div>
</body>
</html>

?

另外五种实现等高方法:http://www.hemin.cn/blog/?p=761

?

?