表格,表单

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 调整尺寸属性;

posted @ 2018-01-22 14:38  hey-李高冷  阅读(129)  评论(0编辑  收藏  举报