2
我有兩件事。列表項絕對底部與JQuery等列高度
- 我的最後一個列表項絕對是我的無序列表的底部,但它重疊在我的無序列表的底部。
- 我想使用'JQuery等列高度'的絕對底部,所以我的列都相等,因爲我打算有斜邊。
我正在尋找某人爲我解決這個問題,因爲我在這一刻卡住了。
這是我的jsfiddle與上次列表項絕對底部: http://jsfiddle.net/evanmoore/QPQ8Z/
這是jQuery的平等柱高度與上次列表項絕對底部 http://jsfiddle.net/evanmoore/mCang/2/
var maxHeight = 0;
function setHeight(column) {
//Get all the element with class = col
column = $(column);
//Loop all the column
column.each(function() {
//Store the highest value
if($(this).height() > maxHeight) {
maxHeight = $(this).height()+2;
}
});
//Set the height
column.height(maxHeight);
}
$(document).ready(function() {
setHeight('.wrapper');
});
非常感謝!這正是我所需要的。再次謝謝你。 – Evan 2012-07-18 12:57:34
不客氣! :) 很高興我能幫上忙。 – darksky 2012-07-18 14:08:48