最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Lesson02_03 表单标签
时间:2026-05-28 17:30:01 编辑:袖梨 来源:一聚教程网
<form></form>
用来创建一个表单,即定义表单的开始和结束位置提交按钮:<input type="submit">
用于提交表单的内容当设有name值时其name及value也要提交给服务器 代码如下:<form> <input type="submit"> </form> 效果如下:重置按钮:<input type="reset">
用于将表单的内容置为默认值 代码如下:<form> <input type="reset"> </form>效果如下:单行文本输入区域:<input type="text">
其有一个size属性来指定输入区域的大小,以字符为单位 代码如下:<form> <input type="text"> </form>效果如下: size属性:<form> <input type="text" size="9"> </form>效果如下: maxlength属性下:<form> <input type="text" maxlength="10"> </form>只可以输入9个字符效果如下: value属性:<form> <input type="text" value="Loncer"> </form>效果如下: readonly属性:<form> <input type="text" readonly value="Loncer"> </form>手工改动不了,可以用脚本去改效果如下: disable属性:<form> <input type="text" disabled value="Loncer"> </form>当不存在这个元素,不将其传给服务器效果如下: 复选框按钮:<input type="checkbox">
<form> <input type="checkedbox" name=check> </form>效果如下: checked属性<form> <input type="checkedbox" checked name=check> </form>效果如下: 单选框按钮:<input type="radio">
只可以一个被选中<form> <input type="radio" name=radio1 value=1 checked>男<input type="radio" name=radio1 value2>女 </form>效果如下: 隐藏字段:<input type="hidden">
不显示,用于提交隐藏的信息密码输入区:<input type="password">
使输入的内容为*号,即不可见的 代码如下:<from>< input type="password"> </frome>效果如下: 按钮:<input type="button">
与脚本相连 代码如下:<from>< input type="button" value="提交"> </frome> 效果如下:相关文章
- 卡牌木剑游戏体验如何_卡牌木剑规则玩法介绍 05-28
- 光遇5月28日每日任务详细攻略指南 05-28
- 数据权限为何需要置于Mapper XML中:DataScope拦截器的架构权衡 05-28
- 归零巡礼:亡谍镇魂曲心因性发展偏离成就获取指南解析 05-28
- 《三国志战略版》5月10日版本更新公告 05-28
- 星语相机app如何修复老照片 05-28