当前第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中p标签可以以什么结束
css中resize属性有什么用
html的元素有哪几种隐藏方式
css 背景颜色怎么设置
内联css写法是什么
html中stroke是什么意思?
如何将html转换成excel
css min-width属性怎么用
springboot如何返回html和jsp
html 速查列表
更多相关阅读请进入《css》频道 >>
人民邮电出版社
本书对 Vue.js 3 技术细节的分析非常可靠,对于需要深入理解 Vue.js 3 的用户会有很大的帮助。——尤雨溪,Vue.js作者
转载请注明出处:木庄网络博客 » css怎么设置文本框的宽和高