如何在屏幕中隐藏列并在csv文件中将其删除? [英] How do I hide a column in screen and delete it in csv file?
本文介绍了如何在屏幕中隐藏列并在csv文件中将其删除?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经创建了一个表格并在屏幕上显示,但我希望隐藏2列而不更改整个视图,因为我可能会在以后使用它。
如何隐藏它自动重新调整列宽等。
我尝试过:
I have created a table and display it on screen, but I want to hide 2 columns without changing the entire view as I may use it later on.
How do I hide with it auto-readjusting the column width, etc.
What I have tried:
<table class="table-scr" style="width: 100%">
<colgroup>
<col style="width: 10%">
<col style="width: 20%">
<col style="width: 20%">
<col style="width: 30%">
<col style="width: 20%">
</colgroup>
<tbody>
<tr>
<th>Student ID</th>
<th>First Name</th>
<th>Last Name</th>
<th>Department</th>
<th>Major</th>
</tr>
</tbody>
<tbody>
<tr>
<td class="@class">@std_ID</td>
<td class="@class">@std_FirstName</td>
<td class="@class">@std_LastName</td>
<td class="@class">@std_dept</td>
<td class="@class">@std_major</td>
</tr>
</tbody>
</table>
推荐答案
只需注释掉您不想显示的列。是的,真的很容易。
Simply comment out the columns you don't want to display. Yes, it really is that easy.
这篇关于如何在屏幕中隐藏列并在csv文件中将其删除?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文