How to give polymer iron image auto height? [duplicate]

时光总嘲笑我的痴心妄想 提交于 2019-12-12 06:05:11

问题


Check out this jsbin

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.

iron image is required to set a fixed height otherwise image not display, I tried height:auto and height:100% but not work.


回答1:


I was using paper-material, should use paper-card



来源:https://stackoverflow.com/questions/32398417/how-to-give-polymer-iron-image-auto-height

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!