fmpq.com
源代码:
点击运行
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Fmpq教程(fmpq.com)</title> <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"> </script> <script> $(document).ready(function() { $(".btn1").click(function(){ $("table").animate({borderSpacing:"10px"}); }); $(".btn2").click(function(){ $("table").animate({borderSpacing:"1px"}); }); }); </script> <style> table{border:1px solid black;} td{border:1px solid black;} </style> </head> <body> <button class="btn1">动画</button> <button class="btn2">重置</button> <br><br> <table> <tr> <td>Peter</td> <td>Griffin</td> </tr> <tr> <td>Lois</td> <td>Griffin</td> </tr> </table> </body> </html>
运行结果