html文本框代码:1、单行文本框【<input type="text" style="height:..;width:..;" />】;2、多行文本框【textarea style=";height:;"></textare】。

本教程操作环境:windows7系统、html5版,DELL G3电脑。 html文本框代码: 1、单行文本框: <input type="text" style="height:20px;width:100px;" /> 2、多行文本框(文本域): <textarea style="width:300px;height:100px;"></textarea> 文本框是单行的,而文本域可以输入多行,不过文本框也可以通过设置变成成多行。一般来说如果要填写的内容很多我们就用文本域<textarea>,反之用<text>。 相关学习推荐:html视频教程
以上就是html文本框代码怎么写的详细内容,更多请关注模板之家(www.mb5.com.cn)其它相关文章! |