有没有办法检测浏览器是否支持iframe?
有没有办法检测浏览器是否支持iframe?
HTML:
<iframe ...>
<script type="text/javascript">var iFramesSupported = false;</script>
</iframe>
<iframe><script>iframeSupport=false</script></iframe>
怎么样? - user123444555621<iframe><div id="iframe-is-not-supported"></div></iframe>
- Dmitry Gonchar你可以随时进行测试...
<iframe src="user_can_see_iframes.php" width="0" height="0">
<p>iframes not supported</p>
</iframe>
所有主要的桌面浏览器都支持iFrames。
如果您是在移动设备上使用,我在谷歌上找到了这个链接:http://johannburkard.de/blog/www/mobile/iframe-support-on-mobile-devices.html
一些旧设备可能不支持iframes。