Chrome Fullscreen API

后端 未结 5 949
半阙折子戏
半阙折子戏 2020-11-27 10:39

According to this article Google Chrome 15 has a fullscreen JavaScript API.

I have tried to make it work but failed. I have also searched for official documentation

5条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-27 11:16

    I made a simple wrapper for the Fullscreen API, called screenfull.js, to smooth out the prefix mess and fix some inconsistencies in the different implementations. Check out the demo to see how the Fullscreen API works.

    Recommended reading:

    • Using the Fullscreen API in web browsers
    • MDN - Fullscreen API

提交回复
热议问题