我有這個小小的腳本,它使得我在jQuery中一直使用的盒子具有相同的高度,我需要將它轉換爲站點的mootools。在這個例子中, 這些盒子會以樣式表的三分之一浮動。將jquery轉換爲均衡高度的小腳本中的mootools
<div id="box1" class="equals">content here</div>
<div id="box2" class="equals">content here</div>
<div id="box3" class="equals">content here</div>
jQuery(document).ready(function(){
var highestCol = Math.max(jQuery('#box1').height(),jQuery('#box2').height(),jQuery('#box3').height());
jQuery('.equals').height(highestCol);
});