1. 程式人生 > >table標籤與列表標籤

table標籤與列表標籤

table tr td th
表格屬性
table:
width:寬度
height:高度
align:水平對齊方式(left center right)
border:設定表格的變寬,以px(畫素)為單位
cellpadding:內邊距(單元格邊框與內容之間的距離)
cellspacing:外邊距(單元格與單元格之間的距離)
bgcolor:表格背景顏色
tr:
align:設定該行內容的水平對齊方式(left center right)
valign:設定改行內容的垂直對齊方式(top middle bottom)
td:
align:
valign:
width:
height:
colspan:單元格跨列(向右合併單元格)
rowspan:單元格跨行(向下合併單元格)

表格標題:caption (預設在表格上方水平居中顯示)

thead 表格頭部
tbody表格中部
tfoot 表格尾部

這裡寫圖片描述

列表:
1.無序列表
ul li Unorde List
屬性:ul type: disc:實心圓(預設)circle:空心圓 square:實心矩形
2.有序列表
ol li Order List
li li List Item
屬性:ol type:列表型別
取值:
1:數字(預設值)
a:小寫字母
A:大寫字母
i:小寫羅馬數字
I:大寫羅馬數字
start:其實編號
3.自定義列表
dl 定義列表
dt 列表內容標題
dd 列表資料
dd自動縮排 為dt的解析項
使用場合:使圖文混排的場合

這裡寫圖片描述