您的位置:首页 > 其它

隐藏表中字段

2014-12-01 15:09 316 查看
1. HTML Mark

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<style type="text/css">
  table#Customers tr td:nth-child(3), tr td:nth-child(6) {
display: none;
        }
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
<table id="Customers" border="1">
<tr>
<td>Test Data11</td>
<td>Test Data12</td>
<td>Test Data13</td>
<td>Test Data14</td>
<td>Test Data15</td>
<td>Test Data16</td>
</tr>
</table>
<table border="1">
<tr>
<td>Test Data21</td>
<td>Test Data22</td>
<td>Test Data23</td>
<td>Test Data24</td>
<td>Test Data25</td>
<td>Test Data26</td>
</tr>
</table>
</div>
</form>
</body>
</html>


http://forums.asp.net/t/2022409.aspx
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: