css表格属性

Original 2019-01-16 17:44:58 304
abstract:<!DOCTYPE html><html><head> <meta charset="utf-8"> <title>php中文网(php.cn)</title> <style> table, td, th { border:1px so

<!DOCTYPE html>

<html>

<head>

 <meta charset="utf-8">

 <title>php中文网(php.cn)</title>

 <style>

 table, td, th

 {

 border:1px solid green;

 }

 th

 {

 background-color: #ca6fc3;

 color:white;

 }

 </style>

</head>


<body>

<table>

 <tr>

 <th>Firstname</th>

 <th>Lastname</th>

 <th>Savings</th>

 </tr>

 <tr>

 <td>Peter</td>

 <td>Griffin</td>

 <td>$100</td>

 </tr>

 <tr>

 <td>Lois</td>

 <td>Griffin</td>

 <td>$150</td>

 </tr>

 <tr>

 <td>Joe</td>

 <td>Swanson</td>

 <td>$300</td>

 </tr>

 <tr>

 <td>Cleveland</td>

 <td>Brown</td>

 <td>$250</td>

 </tr>

</table>

</body>

</html>


Correcting teacher:韦小宝Correction time:2019-01-16 17:48:28
Teacher's summary:写的还挺不错 样式也讲的过去 没有什么毛病 继续加油吧

Release Notes

Popular Entries