margin-top负值解决label 文字与input 垂直居中对齐问题
导读:收集整理的这篇文章主要介绍了margin-top负值解决label 文字与input 垂直居中对齐问题,觉得挺不错的,现在分享给大家,也给大家做个参考。 label 文字与input 垂直居中对齐不容易调好,试验了padding、...
收集整理的这篇文章主要介绍了margin-top负值解决label 文字与input 垂直居中对齐问题,觉得挺不错的,现在分享给大家,也给大家做个参考。 label 文字与input 垂直居中对齐不容易调好,试验了padding、vertical-align:middle等都不凑效,如 复制代码代码如下:
label for='DenyReasonRadio3'> input tyPE='radio' name='DenyReasonRadio' id='DenyReasonRadio3' value='文字'> /input> & nbsp; 文字/label>
解决方法:把Input设为margin-top:-5px; 上移多少慢慢调就好了。
声明:本文内容由网友自发贡献,本站不承担相应法律责任。对本内容有异议或投诉,请联系2913721942#qq.com核实处理,我们将尽快回复您,谢谢合作!
若转载请注明出处: margin-top负值解决label 文字与input 垂直居中对齐问题
本文地址: https://pptw.com/jishu/588125.html