Javascript 模拟F11全屏

function fullscr() {

    var ffchat;

    ffchat = window.open("#", "hamie", "Status=no,scrollbars=no,resizable=yes");

    ffchat.moveTo(0, 0);

    ffchat.resizeTo(screen.availWidth, screen.availHeight);

    ffchat.outerWidth = screen.availWidth;

    ffchat.outerHeight = screen.availHeight;

}

<span class="FullIcon" onclick="fullscr()"></span>


 不会到会,只是一个过程! 


你可能感兴趣的:(JavaScript,全屏,F11)