隐藏某一行这个相对简单点,但是隐藏某一列感觉写起来很复杂啊
html:
| col 1 | col 2 | col 3 | col 4 |
| col 1 | col 2 | col 3 | col 4 |
| col 1 | col 2 | col 3 | col 4 |
| col 1 | col 2 | col 3 | col 4 |
css:
table {
margin: 10px;
}
td {
border: 1px solid #396;
padding: 10px;
}
http://jsfiddle.net/zNZN7/
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
如果你要删掉第一行,下面这行就行
$(document).ready(function(){ $("table tr td:nth-child(1)").each(function(){ $(this).remove(); }); });