表格,表单
table表格
表格標簽:
table 表格
thead 表格頭
tbody 表格主體
tr 表格行
th 元素定義表頭
td 元素定義表格單元
表格樣式:
table{border-collapse:collapse;} 單元格間隙合并??
colspan 屬性規定單元格可橫跨的列數。 <td colspan="2"></td>
rowspan 屬性規定單元格可橫跨的行數。 <td rowspan="2"></td>
th,td{padding:0;}重置單元格默認填充
form 表單
<input type="…… " name="" value="" />
text 文本框
password 密碼
radio 單選
checkbox 復選
submit 提交
reset 重置
button 按鈕
image 圖片
file 上傳
hidden 隱藏
a.label 標簽為 input 元素定義標注
<input type="checkbox" name="" id="a"/> <label for="a">……</label>
b.checked 在頁面加載時默認選定的 input 元素。
<input type="checkbox" name="" checked/>
c.disabled 屬性規定應該禁用 input 元素。
<input type="checkbox" name="" disabled/>
d.select/option 下拉選框 對高度的支持不兼容;
e.textarea 文本域 各個瀏覽器下的默認滾動條顯示不兼容 css3新增 resize 調整尺寸屬性;
轉載于:https://www.cnblogs.com/tflicong/p/8328926.html
總結
- 上一篇: 深润云谷附近有可租一月的房子吗?
- 下一篇: 鱼池可以用沥青防水吗?