我有一个包含缩略图的 listview
元素。缩略图以特殊方式对齐,文本似乎有额外的顶部和底部间距。有什么想法可以让文本与图像垂直对齐吗?
最佳答案
为了使图像与文本顶部完美对齐,我所做的是:
<div style="padding:10px 10px 10px 0;text-align:center; float:left;">
<img src="image.jpg" style="max-width:80px;max-height:80px;"/>
</div>
关于jquery 移动缩略图和 ListView 中的文本对齐,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9071195/