我正在尝试获取我开发的课程,当它从Scorm Cloud (一个学习管理系统)启动时,它将全屏显示。当我使用来自W3的代码直接从LMS启动时,我设法获得了全屏:
var html = document.querySelector('html');
console.log(html)
if (html.requestFullscreen) {
html.requestFullscreen();
} else if (html.mozRequestFullScreen) { /* Firefox */
当用全屏启动chrome时,在angular上退出全屏不起作用。 html: <hello name="{{ name }}"></hello>
<a href="https://angular-go-full-screen-f11-key.stackblitz.io" target="_blank" style="display: block;">
Open in new window
</a>
<button (click)="openFullscreen()