表单(from)

2018-12-30  本文已影响0人  卑微小利

1.fieldset

跟grounp分组差不多

2.legend

2.legend
指定fieldset的组名 <fieldset>组名</fieldset>

3.action

连接后台服务器 <form action="模拟后台服务器">

4.placeholder

提示符 placeholder="用户名"

5.radio

 只能选一个,比如性别type="radio"

6.checked

设置默认值 checked=checked

7.multiple

可多选 multiple=multiple

8.select

下拉列表 <select></select>

9.optgroup

分组 <optgroup></optgroup>

10.label

指定组名 在optgroup里面设置

11.option

在下拉列表中设置下拉列表项

12.textarea

多行文本域

13.submit

默认是提交按钮

14.reset

重置 恢复默认样式

15.button

一个单纯的按钮 用value设置值 比input标签更灵活
上一篇 下一篇

猜你喜欢

热点阅读