Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[html] 第726天 如何强制浏览器全屏? #3801

Open
haizhilin2013 opened this issue Apr 10, 2021 · 1 comment
Open

[html] 第726天 如何强制浏览器全屏? #3801

haizhilin2013 opened this issue Apr 10, 2021 · 1 comment
Labels
html html

Comments

@haizhilin2013
Copy link
Collaborator

第726天 如何强制浏览器全屏?

#2974

3+1官网

我也要出题

@haizhilin2013 haizhilin2013 added the html html label Apr 10, 2021
@Dlame
Copy link

Dlame commented Apr 12, 2021

function fullScreen() {
    var el = document.documentElement;
    var rfs = el.requestFullScreen || el.webkitRequestFullScreen || el.mozRequestFullScreen || el.msRequestFullscreen;
    if (typeof rfs != "undefined" && rfs) {
       rfs.call(el);
    }
    return;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
html html
Projects
None yet
Development

No branches or pull requests

2 participants