Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
正如图片参考所见,我喜欢编写一个 jQuery 函数来检查右侧文本的高度,并使图像高度匹配它以“推动”文本向右对齐(见红色框)你是怎么做到的?
由于投反对票,我将改变我的答案。使用另一个 div 并制作它display:table;。这对我有用。
display:table;