怎样使input控件和文字垂直对齐?
作者:互联网
- 要使input控件和文字对齐?
主要还是要调整input控件的位置, 主要是设置 input控件的margin-top: -5px, 让input控件向上移动.
<div class="form-group">
<div class="col-md-offset-1 col-md-5">
<span style="padding-right:18px;color:#666">登录类型:</span>
<label class="radio-inline" style="margin-top: -6px;"><input type="radio" name="usrtype" value="trch" checked>type1</label>
<label class="radio-inline" style="margin-top: -6px;"><input type="radio" name="usrtype" value="buradm">tyep2</label>
<label class="radio-inline" style="margin-top: -6px;"><input type="radio" name="usrtype" value="jdadm">type3</label>
</div>
</div>
标签:文字,控件,nbsp,input,对齐,type1 来源: https://www.cnblogs.com/bkylee/p/12591713.html