如何隐藏HTML表中的列? [英] How to hide columns in HTML table?

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

问题描述

我在ASPX中创建了一个表格。我想根据需求隐藏其中一列,但在HTML表格构建中没有像 visible 这样的属性。我如何解决我的问题?

I have created a table in ASPX. I want to hide one of the columns based on the requirement but there is no attribute like visible in the HTML table building. How can I solve my problem?

推荐答案

您需要为此使用样式表。

You need to use Style Sheet for this purpose.

<td style="display:none;">

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

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