css怎么设置文本框的宽和高


当前第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>

效果图:

1.png

更多编程相关知识,请访问:编程课程!!

以上就是css怎么设置文本框的宽和高的详细内容,更多文章请关注木庄网络博客

返回前面的内容

相关阅读 >>

html中p标签可以以什么结束

css中resize属性有什么用

html的元素有哪几种隐藏方式

css 背景颜色怎么设置

内联css写法是什么

html中stroke是什么意思?

如何将html转换成excel

css min-width属性怎么用

springboot如何返回html和jsp

html 速查列表

更多相关阅读请进入《css》频道 >>




打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...