当前第2页 返回上一页
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | <!DOCTYPE html>
< html >
< head >
< meta charset = "UTF-8" >
< style type = "text/css" >
.input{
width: 200px;
height: 100px;
}
.textarea{
idth: 200px;
height: 100px;
}
</ style >
</ head >
< body >
< input type = "text" placeholder = "默认单行文本框" />
< input type = "text" class = "input" placeholder = "设置宽度200px,高度100px" />< br />< br />
< textarea placeholder = "默认多行文本框" ></ textarea >
< textarea class = "textarea" placeholder = "设置宽度200px,高度100px" ></ textarea >
</ body >
</ html >
|
效果图:

更多编程相关知识,请访问:编程课程!!
以上就是css怎么设置文本框的宽和高的详细内容,更多文章请关注木庄网络博客!
返回前面的内容
相关阅读 >>
html成对标记有哪些
html代码如何格式化
html脚本javascript的功能
html和css3中的2d、3d结合实现动画效果
在html中用于设置页面元信息的标示符是什么
html css js 区别是什么
html5 简介
html5与html的区别有哪些?html5与html四大区别总结
html中的head标签在哪里找?head标签的作用总结
html水平线hr颜色怎么写
更多相关阅读请进入《css》频道 >>
人民邮电出版社
本书对 Vue.js 3 技术细节的分析非常可靠,对于需要深入理解 Vue.js 3 的用户会有很大的帮助。——尤雨溪,Vue.js作者
转载请注明出处:木庄网络博客 » css怎么设置文本框的宽和高