我正在尝试获取我开发的课程,当它从Scorm Cloud (一个学习管理系统)启动时,它将全屏显示。当我使用来自W3的代码直接从LMS启动时,我设法获得了全屏:
var html = document.querySelector('html');
console.log(html)
if (html.requestFullscreen) {
html.requestFullscreen();
} else if (html.mozRequestFullScreen) { /* Firefox */
更新1:使用图片和更多详细信息更新:
更新2:更改标题以更好地反映问题,因为导航条不能像状态栏那样手动控制
好的,所以我想要覆盖状态栏在一个应用程序和隐藏导航栏。
我通过以下方式实现了这一点:(这都是在app.xaml.cs内部)
public override async Task OnInitializeAsync(IActivatedEventArgs args)
{
//this allows nav bar and status bar to overlay the app
ApplicationView.GetForCurrentV