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(){ $("td:parent").css("background-color","yellow"); }); </script> </head> <body> <h1>欢迎来到我的主页</h1> <table border="1"> <tr> <th>序号</th> <th>站点名</th> <th>网址</th> </tr> <tr> <td>1</td> <td>Google</td> <td></td> </tr> <tr> <td>2</td> <td>Runoob</td> <td>fmpq.com</td> </tr> <tr> <td>3</td> <td>Taobao</td> <td>taobao.com</td> </tr> <tr> <td>4</td> <td></td> <td>baidu.com</td> </tr> <tr> <td>5</td> <td>Sina</td> <td>sina.com.cn</td> </tr> <tr> <td>6</td> <td>Facebook</td> <td></td> </tr> <tr> <td>7</td> <td>twitter</td> <td>twitter.com</td> </tr> <tr> <td>8</td> <td>youtube</td> <td>youtube.com</td> </tr> </table> <p>你可以向空的 td 插入一些内容,查看效果。</p> </body> </html>
运行结果