How widely supported is the iframe attribute “allo

2020-08-10 19:34发布

I can't seem to find any websites detailing the support for the iframe attribute "allowfullscreen". CanIUse.com doesn't seem to have a listing for it, for example.

Does anyone have the support information for Chrome, Safari, IE and Firefox?

3条回答
别忘想泡老子
2楼-- · 2020-08-10 19:56

I've started discovering some of my own answers:

FireFox: Added support in v18 (January 8, 2013) - Source
Chrome: Added support in v27 (May 22, 2013) - Source
Safari: Added support in v7 (October 22, 2013) - Source
Internet Explorer: Added support in v11
Microsoft Edge: Supported

It seems to be difficult to find detailed release notes for the other three, unfortunately.

查看更多
We Are One
3楼-- · 2020-08-10 20:01

There’s a website dedicated to this attribute: http://www.allowfullscreen.com/. It's not very good, however.

While MSDN has only a rudimental entry, MDN provides a support table in their iframe doc:

  • FF: 18
  • Chrome: 17 (webkitallowfullscreen)
  • IE: no support
  • Safari: prefix support
  • Opera: supported
查看更多
倾城 Initia
4楼-- · 2020-08-10 20:20

Update: CanIUse.com reports support in all major browsers now.

Looks like this attribute is part of the HTML 5.1 specification. This WC3 implementation report claims support in all browsers, so

<iframe allowfullscreen>

should work, except Microsoft browsers which need the -ms- vendor prefix.

查看更多
登录 后发表回答