简体   繁体   English

iframe中的视口中继标记

[英]Viewport meta tag in iframe

I have a html page that has a viewport meta tag. 我有一个带有视口meta标签的html页面。 I'm viewing the page on iPad and it displays with the right viewport. 我正在iPad上查看该页面,它以正确的视口显示。 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. 如果我打开另一个没有视口标签的页面,其中包含指向我的页面的iFrame,则视口标签无效。

Is this the correct behaviour? 这是正确的行为吗? Is there a way to have the viewport tag working from within an iframe? 是否可以在iframe中使用视口代码?

Thank you! 谢谢!

由于安全问题,iframe内容无法“泄漏”到父页面上,因此元标记必须位于原始页面代码中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM