How to hide columns in HTML table?

后端 未结 9 1141
执念已碎
执念已碎 2020-11-27 14:07

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. Ho

9条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-27 14:44

    You can also do what vs dev suggests programmatically by assigning the style with Javascript by iterating through the columns and setting the td element at a specific index to have that style.

提交回复
热议问题