与960.gs相同的柱高? [英] same height of columns with 960.gs?
问题描述
我一排有4列,根据我在每列中输入的信息量,它们的高度会有所不同。您会看到,如果在它们上加上背景色。
i've got 4 columns in one row and depending on how much information i put in each of them they will have different heights. you can see that if you put a background color on them.
我如何为其他列赋予最大列高度?
how do i give the other columns the height of the column with the largest height?
推荐答案
您可以使用jQuery来做到这一点。
http://www.cssnewbie.com/equal-height -columns-with-jquery /
You can use jQuery to do this. http://www.cssnewbie.com/equal-height-columns-with-jquery/
或者,对于仅CSS方法,您可以将所有列包装在一个div,然后应用一个具有4个与列宽匹配的颜色块的单个背景图像。
Alternaively for a CSS only approach you can make it look like they are the same height, by wrapping all columns in a div, and then applying a single background image, with 4 blocks of colour that match the column widths.
该包装器div将扩展为最大列的大小,并给人以4个相等大小的列的印象。
This wrapper div will expand to be the size of the largest column, and will give the impression of 4 equal sized cols.
这篇关于与960.gs相同的柱高?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!