3 回答

TA貢獻(xiàn)1777條經(jīng)驗(yàn) 獲得超10個贊
1 2 3 4 5 6 7 8 9 10 | Jquery: $(document).ready(function(e) { $("#hid").click(function(){ $("#all tr").not($("#one")).hide(1000); }); $("#show").click(function(){ $("#all tr").show(1000); });
}); |
1 2 3 4 5 6 7 8 9 10 11 12 | html 部分代碼 <body> <input type="button" value="show" id="show" /> <input type="button" value="hidden" id="hid" /> <table id="all"> <tr id="one"><td>one</td></tr> <tr><td>...</td></tr> <tr><td>...</td></tr> <tr><td>...</td></tr> <tr><td>...</td></tr> </table> </body> |
1 2 3 4 | css table{ width:500px; border-collapse:0; border-spacing:0;} table tr td{ border:1px solid #ccc;} 帶動畫效果哦 親 |
- 3 回答
- 0 關(guān)注
- 763 瀏覽
添加回答
舉報