竣是毖购汗鸥梆烫宋钡群伪湘
新建19目录 新建mvc 目录 新建temp.php
temp.php代码,完成表格设计:
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>mvc设计思想</title> <style> table,td,th { /*1px 实心线 黑色*/ border:1px solid black; } table { /*折叠表格线*/ border-collapse:collapse; width:60%; margin:30px auto; text-align: center; } caption { font-size: 1.5em; margin-bottom: 15px; } /*//第一个tr添加样式*/ table tr:first-child { background-color: lightskyblue; } </style> </head> <body> <!--M Model:模型的缩写 可以认为是数据库、数据表--> <!--V View :视图 模板--> <!--C Controller:控制器 根据用户请求调度数据填充界面--> <table> <caption>员工信息表</caption> <tr> <th>ID</th> <th>姓名</th> <th>年龄</th> <th>工资</th> </tr> <tr> <th>A</th> <th>A</th> <th>A</th> <th>A</th> </tr> <tr> <th>A</th> <th>A</th> <th>A</th> <th>A</th> </tr> <tr> <th>A</th> <th>A</th> <th>A</th> <th>A</th> </tr> <tr> <th>A</th> <th>A</th> <th>A</th> <th>A</th> </tr> <tr> <th>A</th> <th>A</th> <th>A</th> <th>A</th> </tr> </table> </body> </html>
执行:
腥挤付缆届如少北顾县辟牡碱