实例
<!DOCTYPE html> <html> <meta charset="utf-8"> <head> <title>互联网大佬top3</title> <style type="text/css"> table,th,td{ border:1px solid #333 } table { border-collapse: collapse; text-align: center; margin:50px auto; width: 60%; box-shadow: 4px 4px 4px #888; /*background-color: red;*/ } table caption{ font-size: 1.8em; font-weight: border; margin-bottom: 30px } th,td { padding: 10px } td img { border-radius: 50%; box-shadow:2px 2px 2px #888; } th{ background-color: rgba(155,155,0,0.3); } .a1{ color: red; font-weight: bolder; font-size: 1.2em; } </style> </head> <body> <table> <caption><h3>互联网大佬top4</h3></caption> <tr> <th>名次</th> <th>姓名</th> <th>头像</th> <th>公司名称</th> <th>网站</th> <th>所在地</th> <th colspan="2">操作</th> </tr> <tr> <td>1</td> <td>李彦宏</td> <td><img src="lyh.jpg" width="50"></td> <td>百度</td> <td><a href="www.baidu.com">www.baidu.com</a></td> <td class="a1">北京</td> <td>删除</td> <td>修改</td> </tr> <tr> <td>2</td> <td>马云</td> <td><img src="my.jpg" width="50"></td> <td>阿里巴巴</td> <td><a href="www.alibaba.com">www.alibaba.com</a></td> <td class="a1">杭州</td> <td>删除</td> <td>修改</td> </tr> <tr> <td>3</td> <td>马化腾</td> <td><img src="mht.jpg" width="50"></td> <td>腾讯</td> <td><a href="www.qq.com">www.qq.com</a></td> <td class="a1">深圳</td> <td>删除</td> <td>修改</td> </tr> </table> </body> </html>
运行实例 »
点击 "运行实例" 按钮查看在线实例