Skip to main content
chenjil43641795
Legend
February 10, 2017
Question

help HTML5 Canvas 中如何fullscreen

  • February 10, 2017
  • 1 reply
  • 719 views

HTML5 Canvas 中如何fullscreen

AS3.

stage.displayState =StageDisplayState.FULL_SCREEN

HTML5该如何写

    This topic has been closed for replies.

    1 reply

    AMULI
    Inspiring
    February 10, 2017

    Please express a minimum

    As far as I can understand from your poor message, you're publishing HTML5 Canvas and wonder how to activate full screen ?

    Go to File > Publish settings, Basic tab : there are options dedicated to centering and responsiveness, then a third option Scale to fill visible area, with two settings Fit in view (margins, no deformation) or Stretch to fit (no margins, deformation) :

    Enregistrer

    Enregistrer

    chenjil43641795
    Legend
    February 10, 2017

    Thanks。

    But 

    The full canvas,

    I need  fullscreen。

    animate cc2017 中该如何写How to make

    Demo

    https://davidwalsh.name/demo/fullscreen.php

    AMULI
    Inspiring
    February 10, 2017

    Ok. May be this will help : https://www.sitepoint.com/use-html5-full-screen-api/

    At the end a JavaScript library is suggested that avoids you to handle the different browser configurations : https://github.com/sindresorhus/screenfull.js/