如何给聚合物铁图像自动高度? [英] How to give polymer iron image auto height?
本文介绍了如何给聚合物铁图像自动高度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
查看此 jsbin
我想要我的图片有自动高度与 sizing =包含
,这意味着他们不会有额外的空间。在我的例子中,这些额外的空间是红色的。
I want my images have auto height with sizing="contain"
, it means they won't have extra space. In my example those extra space are in red.
铁图像是需要设置一个固定的高度,否则图像不显示,我尝试 height:auto
iron image is required to set a fixed height otherwise image not display, I tried height:auto and height:100%
but not work.
推荐答案
我使用的是纸张材料,应该使用纸卡
I was using paper-material, should use paper-card
这篇关于如何给聚合物铁图像自动高度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文