问题
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?
回答1:
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.
回答2:
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
回答3:
Looks like this attribute is part of the HTML 5.1 specification. This WC3 implementation report claims support in all browsers, so
<iframe allowfullscreen>
(with no vendor prefixes) should work as of September 2016. Note the report actually links to the MDN chart that has been mentioned in a previous answer and indicates mobile browser support is currently less certain.
来源:https://stackoverflow.com/questions/18113909/how-widely-supported-is-the-iframe-attribute-allowfullscreen