Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Viewport meta tag in iframe

I have a html page that has a viewport meta tag. I'm viewing the page on iPad and it displays with the right viewport. If I open another page with no viewport tag in it which contains an iFrame that point to my page the viewport tag has no effect.

Is this the correct behaviour? Is there a way to have the viewport tag working from within an iframe?

Thank you!

like image 883
Lince81 Avatar asked Nov 03 '22 01:11

Lince81


1 Answers

Because of security issues iframe content cannot "leak" onto the parent page, meta tags have to be in the original page code.

like image 144
aNewStart847 Avatar answered Nov 10 '22 15:11

aNewStart847