onStart() {
console.log("Game start");
Laya.Config.isAlpha = true;
Laya.stage.bgColor ="none";
this.Show();
}
private iframe: any = Laya.Browser.document.createElement("iframe");
private _view: HTMLDivElement = document.createElement("div");
public Show(): void {
Laya.Browser.document.body.appendChild(this._view);
this._view.appendChild(this.iframe);
this.iframe.src = "https://www.layabox.com/";
this.iframe.style.position = "fixed";
this.iframe.style.top = "0";
this.iframe.style.bottom = "0";
this.iframe.style.left = "0";
this.iframe.style.right = "0";
this.iframe.style.width = "100%";
this.iframe.style.height = "100%"
this.iframe.style.border = "none";
this.iframe.style.zIndex=-1
}
那我有一个需求,想将document 元素 层级设置为-1,任看得见,该如何实现呢