把下面的代码复制就可以了,检查您的硬盘中是否有jquery.js这个框架<!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>
<script type="text/javascript" language="javascript" src="js/jquery.js" /></script>
<script type="text/javascript" language="javascript">
     
             $(document).ready(function() {  
        setHeight('.col');  
   });  
      
    //global variable, this will store the highest height value  
    var maxHeight = 0;  
      
    function setHeight(col) {  
        //Get all the element with class = col  
       col = $(col);  
         
       //Loop all the col  
       col.each(function() {          
         
           //Store the highest value  
           if($(this).height() > maxHeight) {  
               maxHeight = $(this).height();;  
          }  
     });  
         
       //Set the height  
      col.height(maxHeight);  
   }  </script>
</head>
<body>
<div class="col" style="border:1px solid;float:left;background:green;margin-right:30px;height:100px;">Cstuding国内最大的在线知识交流平台,国内最大的网上问题交易市场
您碰到在百度和谷歌中无法搜索到的问题吗?
您是不是在为自己无法解决疑惑的问题而苦恼?
您是不是很想立刻解决掉自己疑惑的问题?
现在有了,studing是国内最大的在线问题交易市场,国内最大的知识在线学习、交流的平台,
studing.com.cn现已火爆上线,即刻注册studing会员,即可领取5枚studing金币,5枚studing金币相当于1元钱的人民币,您可以通过studing中的支付宝系统进行兑换相应的积分;还等什么呢?快快参
studing国内最大的在线知识交流平台,国内最大的网上问题交易市场
您碰到在百度和谷歌中无法搜索到的问题吗?
您是不是在为自己无法解决疑惑的问题而苦恼?
您是不是很想立刻解决掉自己疑惑的问题?
现在有了,studing是国内最大的在线问题交易市场,国内最大的知识在线学习、交流的平台,
studing.com.cn现已火爆上线,即刻注册studing会员,即可领取5枚studing金币,5枚studing金币相当于1元钱的人民币,您可以通过studing中的支付宝系统进行兑换相应的积分;还等什么呢?快快参
与吧!-----studing.com.cn
与吧!-----studing.com.cnstuding国内最大的在线知识交流平台,国内最大的网上问题交易市场
您碰到在百度和谷歌中无法搜索到的问题吗?
您是不是在为自己无法解决疑惑的问题而苦恼?
您是不是很想立刻解决掉自己疑惑的问题?
现在有了,studing是国内最大的在线问题交易市场,国内最大的知识在线学习、交流的平台,
studing.com.cn现已火爆上线,即刻注册studing会员,即可领取5枚studing金币,5枚studing金币相当于1元钱的人民币,您可以通过studing中的支付宝系统进行兑换相应的积分;还等什么呢?快快参
与吧!-----studing.com.cnolumn One<br/>  
With Two Line<br/>  
And the height is different<br/><br/>  
</div>  
<div class="col" style="border:1px solid;float:left;background:red;margin-right:30px;">Column Two<br/><br/></div>
</body>
</html>