在我的測試案例中,我可以在列中對齊輸入及其標籤和超鏈接。問題是,超鏈接被對齊的標籤,而不是輸入:將元素與輸入(而不是標籤)對齊 - Bootstrap 3
的代碼如下:
<div class="row">
<div class="form-group col-xs-4">
<label class="form__label" for="form__field__recipientId">Código
beneficiario </label> <input class="form-control input-md col-xs-8"
id="form__field__recipientId" name="form__field__recipientId"
type="text" placeholder="Introduce ordenante">
</div>
<div class="form-group col-xs-4">
<a class="form__side__hyperlink" href="">Buscar beneficiario</a>
</div>
</div>
我已經嘗試了很多東西,主要形式,內聯元素,但我不認爲我做得正確,因爲我最終搞亂了事情。
總之,你想要的鏈接是與輸入線? – Swellar
你真正想要得到什麼?將超鏈接對齊到底部(垂直)? – Abinthaha
的確,這就是我要找的@Swellar。 – wickedchild