h5 打造全屏体验 element.requestFullscreen()

google打造全屏体验 https://developers.google.cn/web/fundamentals/native-hardware/fullscreen/

以前github上的 https://github.com/januwA/over/blob/master/h5%E5%85%A8%E5%B1%8Fapi%E4%BB%A3%E7%A0%81.html

您可以使用的一个不错的高级抽象 API 是 Sindre Sorhus 的 Screenfull.js 模块,该模块将两个略有不同的 JS API 和供应商前缀统一成一个一致的 API。

posted @ 2018-02-01 08:34  Ajanuw  阅读(535)  评论(0编辑  收藏  举报