User:Stonestone/STONELEARNCODING: Difference between revisions
Stonestone (talk | contribs) (Created page with "== html+css== * 表格 <pre> <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>认识table表标签</title> <style ty...") |
Stonestone (talk | contribs) |
||
Line 1: | Line 1: | ||
== html+css== | == html+css== | ||
* 表格 | * 表格 | ||
<pre> | <pre> <!DOCTYPE HTML> | ||
<!DOCTYPE HTML> | |||
<html> | <html> | ||
<head> | <head> | ||
Line 43: | Line 42: | ||
</table> | </table> | ||
</body> | </body> | ||
</html> | </html></pre> | ||
</pre> |
Revision as of 14:46, 12 October 2015
html+css
- 表格
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>认识table表标签</title> <style type="text/css"> table tr td,th{ border:1px solid #000; } </style> </head> <body> <table> <table summary="本表格记录2012年到2013年库存记录,记录包括U盘和耳机库存量"> <caption>2012年到2013年库存记录</caption> <tr> <th>产品名称 </th> <th>品牌 </th> <th>库存量(个) </th> <th>入库时间 </th> </tr> <tr> <td>耳机 </td> <td>联想 </td> <td>500</td> <td>2013-1-2</td> </tr> <tr> <td>U盘 </td> <td>金士顿 </td> <td>120</td> <td>2013-8-10</td> </tr> <tr> <td>U盘 </td> <td>爱国者 </td> <td>133</td> <td>2013-3-25</td> </tr> </table> </body> </html>