gpt4 book ai didi

html - 如何减少两个输入字段之间的空间

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

我需要减少两个输入字段之间的空间,下面是我的属性,我尝试更改边距但没有奏效。请建议

.SecValue {
display: inline-block;
float: right;
height: 20px;
max-width: 90px;
min-width: 70px;
text-align: left;
color: #666666;
font-size: 10px;
font-family: Verdana, Arial, Helvetica, Sans-serif;
word-wrap: break-word;
font-weight: bold;
padding: 0px;
margin-bottom: 6px;
text-transform: uppercase;
}

<tr class="selectheight5">
<td class="tdLabelWidth">
<form:label class="sectionLabel" path="">Code</form:label>
</td>
<td class="tdInputWidth">
<form:select id="formState">
<form:option value="0">Select</form:option>
<form:option value="RE">RE</form:option>
</form:select>
<form:input class="SecValue" id="formcode" type="search" maxlength="5" />
<form:label id="errorformState" class="sectionError" path=""></form:label>
<form:label id="errorformcode" class="sectionError" path=""></form:label>
</td>
</tr>

embedded image

最佳答案

你可以只删除float: right

.SecValue {
display: inline-block;
/*float: right;*/
height: 20px;
max-width: 90px;
min-width: 70px;
text-align: left;
color: #666666;
font-size: 10px;
font-family: Verdana, Arial, Helvetica, Sans-serif;
word-wrap: break-word;
font-weight: bold;
padding: 0px;
margin-bottom: 6px;
text-transform: uppercase;
}
<tr class="selectheight5">
<td class="tdLabelWidth">
<label class="sectionLabel" path="">Code</label>
</td>
<td class="tdInputWidth">
<select id="formState">
<option value="0">Select</option>
<option value="RE">RE</option>
</select>
<input class="SecValue" id="formcode" type="search" maxlength="5" />
<label id="errorformState" class="sectionError" path=""></label>
<label id="errorformcode" class="sectionError" path=""></label>
</td>
</tr>

关于html - 如何减少两个输入字段之间的空间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52103330/

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