与960.gs相同的柱高? [英] same height of columns with 960.gs?

查看:97
本文介绍了与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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆