HTML表包裹列 [英] HTML Table Wrap Column

查看:206
本文介绍了HTML表包裹列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可能很简单,但我无法理解。

This is probably something simple, but I can't figure it out.

我有一个表,用户将数据输入到列中。每次用户输入数据时,都会创建一个新列。过了一会儿,他们有一堆TON,我需要它们来包装。我知道如何将文本包装在列中,但我需要将整个列包装在第一列下面,依此类推。

I have a table where users input data into columns. Each time the user enters data a new column is created. After a while they have a TON of columns and I need them to wrap. I know how to wrap the text inside the columns, but I need the entire column to wrap below the first column and so on.

推荐答案

您不应该使用表格。
你应该使用带有float:leftCSS样式的div。

You shouldn't use tables for this. You should use divs with "float: left" CSS style.

这是一个有效的例子: http://jsfiddle.net/3MEJ5/

Here is a working example: http://jsfiddle.net/3MEJ5/

这篇关于HTML表包裹列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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