gpt4 book ai didi

html - 有没有办法使用 CSS 或 HTML 更改表单中字段的大小?

转载 作者:太空宇宙 更新时间:2023-11-03 20:39:17 25 4
gpt4 key购买 nike

表单框/字段通常都很大。我想知道是否有办法在 CSS 或 HTML 中使它们变小,因为没有其他大小选项。谢谢!

最佳答案

用于调整整个表单的高度、宽度和对齐方式的 CSS。

form {
width:550px;
height:450px;
margin:auto;
position:relative;
}

用于调整输入字段高度和宽度的 CSS。

input {
width:375px;
height: 25px;
}

还有 Html 使用:

 <form action="demo_form.asp">
Email: <input type="text" name="email" size="35"><br>
PIN: <input type="text" name="pin" maxlength="4" size="4"><br>
<input type="submit" value="Submit">
</form>

请看这个:http://www.w3schools.com/tags/att_input_size.asp

关于html - 有没有办法使用 CSS 或 HTML 更改表单中字段的大小?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28273228/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com