bootstrap布局

Bootstrap表单布局样式

橙三吉。 提交于 2019-11-27 04:09:36
源代码 < form class ="form-horizontal" role ="form" > < fieldset > < legend > 配置数据源 </ legend > < div class ="form-group" > < label class ="col-sm-2 control-label" for ="ds_host" > 主机名 </ label > < div class ="col-sm-4" > < input class ="form-control" id ="ds_host" type ="text" placeholder ="192.168.1.161" /> </ div > < label class ="col-sm-2 control-label" for ="ds_name" > 数据库名 </ label > < div class ="col-sm-4" > < input class ="form-control" id ="ds_name" type ="text" placeholder ="msh" /> </ div > </ div > < div class ="form-group" > < label class ="col-sm-2 control-label" for ="ds_username"