jquery - Containing iframe content to iframe size on mobile -
i'm having problems iframes on mobile safari. have following incredibly simple code styling iframe:
#iframe { width: 400px; height: 250px; border: none; background: #eee; z-index: 1; } https://jsfiddle.net/canyondellomo/1be4zf86/2/.
on desktop, image of dog contained within dimensions of iframe. however, when page loaded on mobile, iframe content totally disregards size of iframe, , expands full size.
could me this?
thanks much
it sounds image bigger iframe when scaled down mobile.
try setting style in image's class:
max-width:100%;
(or whatever width need be)
this might make scale better. if doesn't work, play around setting size using percentages. percentages based on how space there in container, not on size of image itself
Comments
Post a Comment