ionic framework - replacing <img> to <ion-img> and images are very small -


i followed guidance @ virtual scroll , updated list virtuallist.

all fine when converted card background images <img> <ion-img> images appearing background images cards very small. i'm missing?

check image dimensions section in ion-img docs.

by providing image dimensions front, ionic able accurately size image's location within viewport, helps lazy load images viewable. image dimensions can either set properties, inline styles, or external stylesheets. doesn't matter method of setting dimensions used, it's important somehow each ion-img has been given exact size.

you need set height , width image want show if using ion-img either through attributes or css styles.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -