如何将文本输入与图像按钮对齐? [英] How to align a text input with an image button?
本文介绍了如何将文本输入与图像按钮对齐?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个表单,其中输入字段的最后一行后面是2个图像按钮。
I have a form where the last line of input fields is followed by 2 image buttons.
无论我尝试什么,我似乎都无法将其水平对齐与字段的按钮。
No matter what I try I can't seem to horizontally align the buttons with the field.
这里是所有代码:
http:// jsfiddle.net/h3ZPk/
推荐答案
添加此规则:
#buttons img, #buttons input {
vertical-align:bottom;
}
jsFiddle example.
这篇关于如何将文本输入与图像按钮对齐?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文