gpt4 book ai didi

html - 如何为每一行留出空间(CSS 问题)

转载 作者:可可西里 更新时间:2023-11-01 13:04:59 27 4
gpt4 key购买 nike

在我的输出下面,每一行都没有空间,如何使用 Bootstrap CSS 为每一行留出空间?请检查代码

 <div class="form-group" >

<div class="col-sm-2">
<input type="email" class="form-control" id="inputEmail3" placeholder="Email">
</div>
</div>

提前致谢

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha/css/bootstrap.css">

<div class="form-group">
<label for="inputEmail3" class="col-sm-2 control-label">Email</label>

<div class="col-sm-2">
<input type="email" class="form-control" id="inputEmail3" placeholder="Email">
</div>
</div>


<div class="form-group">
<label for="inputEmail3" class="col-sm-2 control-label">Email</label>

<div class="col-sm-2">
<input type="email" class="form-control" id="inputEmail3" placeholder="Email">
</div>
</div>

<div class="form-group">
<label for="inputEmail3" class="col-sm-2 control-label">Email</label>

<div class="col-sm-2">
<input type="email" class="form-control" id="inputEmail3" placeholder="Email">
</div>
</div>





<div class="form-group">
<label for="inputEmail3" class="col-sm-2 control-label">Email</label>

<div class="col-sm-2">
<input type="email" class="form-control" id="inputEmail3" placeholder="Email">
</div>
</div>

<div class="form-group">
<label for="inputEmail3" class="col-sm-2 control-label">Email</label>

<div class="col-sm-2">
<input type="email" class="form-control" id="inputEmail3" placeholder="Email">
</div>
</div>

<div class="form-group">
<label for="inputEmail3" class="col-sm-2 control-label">Email</label>

<div class="col-sm-2">
<input type="email" class="form-control" id="inputEmail3" placeholder="Email">
</div>
</div>





<div class="form-group">
<label for="inputEmail3" class="col-sm-2 control-label">Email</label>

<div class="col-sm-2">
<input type="email" class="form-control" id="inputEmail3" placeholder="Email">
</div>
</div>

<div class="form-group">
<label for="inputEmail3" class="col-sm-2 control-label">Email</label>

<div class="col-sm-2">
<input type="email" class="form-control" id="inputEmail3" placeholder="Email">
</div>
</div>

<div class="form-group">
<label for="inputEmail3" class="col-sm-2 control-label">Email</label>

<div class="col-sm-2">
<input type="email" class="form-control" id="inputEmail3" placeholder="Email">
</div>
</div>

最佳答案

.form-group > * {
margin:5px;
}

关于html - 如何为每一行留出空间(CSS 问题),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34414206/

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