当前第2页 返回上一页
HTML表单中的textarea属性本来就是用作多行文本域的属性,现在要仔细说说,当然得说,文本域的使用了。我们来看看一个页面的代码:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | < form action = "url地址" method=“get/post” name = "表单名称" >
< p >文本框</ p >
用户名:< input type = "text" name = "username" >
< p >密码框(显示为星号和小圆点)</ p >
密码:< input type = "password" name = "password" >
< p >单选框</ p >
单选:< input type = "radio" name = "sex" value = "nan" >男
< input type = "radio" name = "sex" value = "nv" >女
< p >默认选项框</ p >
多选:< input type = "checkbox" name = "" >吃饭
< input type = "checkbox" name = "" checked=“checked”>睡觉
< input type = "checkbox" name = "" >打豆豆
< input type = "checkbox" name = "" >喝水
< p >留言框</ p >
< textarea id = 'memo' style = "min-height: 50px;min-width: 70px;max-height: 50px; max-width: 70px;" ></ textarea >
< p >提交按钮</ p >
提交:< input type = "submit" name = "" >
< p >重置按钮</ p >
重置:< input type = "reset" name = "" >
</ form >
|
这就是表单代码的大部分内容了,最后的留言框是我们今天的文章所描述的:

如上就是关于文本域textarea属性的用法了,更多的可以大家去发现,发现了记得来这下方留言哦
想学更多就上PHP中文网,一个满足你所有想学编程的网站。
【小编推荐】
html中的ol标签如何去掉标号呢?<ol>标签的使用方法总结
HTML中ul标签如何去掉点?HTML无序列表的样式实例解析
以上就是html表单中textarea属性怎么固定大小?textarea属性实例介绍的详细内容,更多文章请关注木庄网络博客!
返回前面的内容
相关阅读 >>
html中怎么让表格居中
html怎样做出鼠标经停时(tr)变色
es6删除数组元素或者对象元素的方法介绍(代码)
html文本阴影效果怎么设置
textarea标签有什么用
css全称是什么意思
html<p>标签是什么元素?关于html p标签的定义和作用详解
html5与html区别是什么
html的文字图片怎样垂直居中
html中b标签与strong标签有什么区别?b标签与strong标签的简单比较
更多相关阅读请进入《textarea》频道 >>
人民邮电出版社
本书对 Vue.js 3 技术细节的分析非常可靠,对于需要深入理解 Vue.js 3 的用户会有很大的帮助。——尤雨溪,Vue.js作者
转载请注明出处:木庄网络博客 » html表单中textarea属性怎么固定大小?textarea属性实例介绍