,这是我的代码中的空间:HTML域之间提供单一div标签
<div class="fieldDate">
<label for="statusEmp">Status of Employee:</label>
<select name="statusEmp" id="statusEmp">
<option value="0">Active</option>
<option value="1">Inactive</option>
</select>
<label for="fromDate">From:</label>
<input type="date" name="fromdate" id="fromDate">
<label for="toDate">To:</label>
<input type="date" name="todate" id="toDate">
<label for="search">Search:</label>
<input type="search" name="search" id="search">
<input type="submit">
</div>
css :
.fieldDate{
float: right;
margin-right: 200px;
}
我想有三个字段之间的空间:现状,从/到,搜索 我该怎么做呢? 他们都出现在同一行(这是我想要的)没有空间之间的领域。
你有没有试过填充? –
你希望他们所有**在一行**,然后在他们之间有一个**空间** ...正确?? ??因为你目前的标记把他们放在不同的行! – NoobEditor
究竟@ NoobEditor – Coder17