* set the min height of the row1 of my-index page to 200px.

This commit is contained in:
wangchunsheng
2011-06-30 09:31:13 +00:00
parent be1e640237
commit 1fe4c6eff0
+2 -1
View File
@@ -6,7 +6,8 @@ $(function()
/* Set the heights of every block to keep them same height. */
row1Height = $('#row1').height() - 10;
row2Height = $('#row2').height() - 10;
row2Height = row2Height > 200 ? row2Height : 200; // Min height is 200px.
row1Height = row1Height > 200 ? row1Height : 200; // Min height is 200px.
row2Height = row2Height > 200 ? row2Height : 200;
$('#row1 .block').each(function(){$(this).css('height', row1Height);})
$('#row2 .block').each(function(){$(this).css('height', row2Height);})