当前第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的title属性
css盒子模型尺寸如何计算
css设置背景图大小该怎么做
html中的注释怎么写?html中的注释符号又是什么?(附实例)
在css中hgroup是什么意思
关于html主体的一些问题探讨
css什么时候用class和id
如何使用css实现背景图像透明
html怎么给字体设置颜色
更多相关阅读请进入《css》频道 >>
人民邮电出版社
本书对 Vue.js 3 技术细节的分析非常可靠,对于需要深入理解 Vue.js 3 的用户会有很大的帮助。——尤雨溪,Vue.js作者
转载请注明出处:木庄网络博客 » css怎么设置文本框的宽和高