I would like a scale iframe on mobile safari .
I include an iframe inside a div .
<html> <body> <div id="iframe_container"> <iframe src="http://jsfiddle.net/viebel/kTzDS/show" style="width:300px;height:300px;"/> </div> </body> </html>
Now I scale the div with this code:
$(function() { $('#iframe_container').css({ '-webkit-transform': 'scale(0.7)', '-webkit-transform-origin': '0 0 ' }); });
In iOS / Safari, the iframe cut (i.e. cannot be fully visible), and on the desktop / chrome, the iframe not cut.
Here is the jsfiddle page with the code: http://jsfiddle.net/viebel/tJQUH/
Just to clarify: here is a demo page demonstrating the real problem - when it is open on iPad / iPhone Safari - all three lines should be the same size: http://jsfiddle.net/viebel/tJQUH/show
Please consult, what can I do to show iframe in Mobile Safari completely uncut?
javascript css html5 ios mobile-safari
viebel
source share