gpt4 book ai didi

css - 输入标签更大的尺寸和输入标签中的文本垂直居中

转载 作者:行者123 更新时间:2023-11-28 11:13:42 25 4
gpt4 key购买 nike

这是我需要做的表格:

enter image description here

现在我在这一点上:

enter image description here

如您所见,我需要创建更大的输入按钮。否则在视觉上它将不起作用。我的问题是如何创建垂直更大的输入按钮,并且输入文本在框的中间保持垂直居中。

CSS 解决方案将是最好的。

如果有帮助,这是我的 html 代码:

<form name="bookingform" action="form-to-email.php" method="post">
<div id="form_box" class="gradient">
<div id="center_box">
<h3>WANT TO BOOK ME?</h3>
<div id="form_data">
<br>
<table>
<tr>
<td><input type="text" value="Company name" name="company" /></td>
<td class="tdright"><input type="text" value="Name" name="name" /></td>
</tr>
<tr>
<td><input type="text" value="Telephone" name="telephone" /></td>
<td class="tdright"><input type="text" value="Email" name="email" /></td>
</tr>
<tr>
<td><input type="text" value="Booking date" name="date" /></td>
<td><input type="button" /></td>
</tr>
</table>
</div>
<div id="form_text">
<br>
<textarea rows="10" cols="40" name="message">Your text...</textarea>
<input type="submit" value="SEND" name="submit" />
</div>
<input type="image" src="" name="Send" />
</div>
</div>
</form>

最佳答案

input[type=button] {
height: 35px; /* increase the height */
line-height: 35px; /* vertically align the text */
}

DEMO

关于css - 输入标签更大的尺寸和输入标签中的文本垂直居中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12184243/

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