jQuery+CSS让两栏/多栏布局高度自动一致

http://www.shejidaren.com/css-auto-height-of-the-column.html

var m = Math.max(
	    $('.main').height(),
	    $('.sidebar').height(),
	    $('.sidebar2').height()
	);
	$('.content').height(m);
posted @ 2014-09-22 10:33  nc_blog  阅读(294)  评论(0编辑  收藏  举报