在制作前端页面时,表单的页面中有时会存在表单元素与提示文字无法对齐的问题。
下面是针对这一问题的解决方案:
先上结果图看效果,吼吼~例子的html代码
css代码
//radio
input[type="radio"]{
vertical-align: bottom;
}
//checkbox
input[type="checkbox"]{
vertical-align: middle;
}
乐意黎
在制作前端页面时,表单的页面中有时会存在表单元素与提示文字无法对齐的问题。
下面是针对这一问题的解决方案:
先上结果图看效果,吼吼~
//radio
input[type="radio"]{
vertical-align: bottom;
}
//checkbox
input[type="checkbox"]{
vertical-align: middle;
}
乐意黎