我希望我的電子郵件和密碼顯示在同一行,但不起作用。請幫幫我。引導窗體水平對齊不起作用?
<div class="container">
<form >
<fieldset class="form-group row">
<label for="email" class="control-label col-sm-2">Email</label>
<div class="col-sm-10">
<input type="email" class="form-control" id="email" />
</div>
</fieldset>
<fieldset class="form-group row">
<label for="password" class="control-label col-sm-2">Password</label>
<div class="col-sm-10">
<input type="password" id="password" class="form-control" />
</div>
</fieldset>
<fieldset class="form-group">
<button type="submit" class="btn btn-primary">Submit</button>
</fieldset>
</form>
</div>
這顯然說明如何做到這一點。 https://getbootstrap.com/docs/3.3/css/#forms-inline –