gpt4 book ai didi

html - Bootstrap-如何在一行上水平对齐选择和文本框?

转载 作者:太空宇宙 更新时间:2023-11-04 08:50:36 25 4
gpt4 key购买 nike

我正在尝试对齐以将选择框和文本框水平对齐在一条线上。我尝试在 css 上使用内联,但它不起作用。

<div class="control-group span6">

<label for="trp_code">Transporter: </label>

<select class="form-control" name="trp_code" id="trp_code" title="Transporter" style="width: 350px;">

</select>



<label for="lrno">LR No: </label>

<input type="text" class="form-control" id="lrno" name ="lrno" size='10' style="width:100px;" onblur ="notempty(this.value)">

<label for="lrdate">LR Date: </label>

<input type="text" class="form-control" name ="lrdate" id="lrdate" style="width:100px;" value="<?php echo date("Y-m-d"); ?>" class="calendar" title="LR Date">

</div></td>

最佳答案

您可以使用 Bootstrap Grid Systems 将 Select 和 TextBox 对齐在一行中。引用链接 https://www.w3schools.com/bootstrap/bootstrap_grid_system.asp

关于html - Bootstrap-如何在一行上水平对齐选择和文本框?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43465399/

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