ABSMIDDLE在Firefox和Chrome上的工作方式不同? [英] ABSMIDDLE works differently on Firefox and Chrome?
本文介绍了ABSMIDDLE在Firefox和Chrome上的工作方式不同?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个图标图像和文字,如下所示。一切的代码源是:
I have an icon image and text like the following. The code source of everything is:
<img src="...." align="absmiddle" /> My Title Here
问题是图标不是垂直排列与Chrome的标题比较firefox 。
The problem is that the icon is not aligned vertically with the title in Chrome compared to firefox.
我认为 absmiddle
根本不工作!有什么解决方案吗?
I think the absmiddle
doesn't work at all! Is there any solution? I don't want to use a table with 2 columns to fix this issue.
推荐答案
尝试使用此解决方案:
<img src="img.png" style="margin-bottom:.25em; vertical-align:middle;">
这篇关于ABSMIDDLE在Firefox和Chrome上的工作方式不同?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文