编辑下面的代码:【加编码】
<html> <head> <style> tr.collapse {visibility:collapse;} </style> </head> <body> <table border="1"> <tr> <td>Peter</td> <td>Griffin</td> </tr> <tr class="collapse"> <td>Lois</td> <td>Griffin</td> </tr> </table> <p><b>Note:</b> IE8 and earlier support visibility:collapse only if a !DOCTYPE is specified.</p> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂