Html 常用內容彙總
阿新 • • 發佈:2018-12-31
//一般表格格式 <table border=1> <tr> <td>name</td> <td>age</td> <td>nation</td> </tr> <tr> <td>Robin</td> <td>24</td> <td>China</td> </tr> </table> //注意:表格中居中加黑把<td>改成<th>即可 合併單元格:<th colspan="2">age</th> <th rowspan="2">age</th> <table border="1" cellpadding="10"> cellpadding是單元格內文字與邊框的距離 <th align="left">...</th> <table width="500" border="1" style="border-collapse:collapse; text-align:right; vertical-align:top;"> <caption>成績</caption> //表格標題 ./代表同級目錄 ../代表上級目錄 瀏覽器圖示: <link rel="shotcut icon" href="favicon.ico"/> 圖片水平居中: display:table-cell letter-spacing:10px; line-height:20%; text-decoration:under-line; word-spacing:30px; //控制單詞間隔距離 ul.disc{list-style-type:disc} <!DOCTYPE html> 指定webBrowser 使用哪個html版本 <hr/> 用來划水平線 shift+Tab 是整體向左偏移 <li></li>必須在<ul></ul>標籤裡面