ITeye博客

bootstrap4

共 1 篇文章

Bootstrap4如何创建水平表单(Horizontal form)

bootstrap3提供form-horizontal方式创建水平表单,而bootstrap4去掉了该类定义。 常用的处理方式有二种: 第一种:在<form></form>中定义<div class="form-row"> </div> 然后在form-row下定义列宽(class="col-*-*")。 <form> <div class="form-row"> <div class="col"> <input type="text" class="form-control" placeholder="First name"> </div> <div class="col"> <input…

2018-10-28 09:15 · bootstrap4