将文本基线与CSS中的按钮对齐 [英] Align text baseline with a button in CSS
本文介绍了将文本基线与CSS中的按钮对齐的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想实现此图像上表示的两个对齐方式之一:。 CSS3可以使事情变得更简单,甚至可以更好。
I would like to achieve one of the two alignments represented on this image: . CSS3 is ok or even better if it makes things simpler.
我的主要问题是我设法将包含文本的一个div与按钮对齐,但是文本本身是
My main problem is that I managed to align one div containing the text with the button, but the text itself is aligned with the top of the div and not the bottom.
推荐答案
我认为您追求的是 vertical-align:text-bottom;
这篇关于将文本基线与CSS中的按钮对齐的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文