<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="WTGS.ZHJC.Web.Index" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script type="text/javascript">
function OpenPage() {
var udswin = window.open("Default.aspx", "_blank", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no");
udswin.moveTo(0, 0);
udswin.resizeTo(window.screen.availWidth, window.screen.availHeight);
window.opener = null;
window.open('', '_parent', '');//不显示是否关闭窗体提示框
window.close();
udswin.focus(); //浏览器全屏
//var WshShell = new ActiveXObject('WScript.Shell')
//WshShell.SendKeys('{F11}');
}
</script>
</head>
<body onload="OpenPage();">
<form id="form1" runat="server">
<div>
</div>
</form>
</body>
</html>写了这样一个页面,目的是在登陆之后让网页全屏显示,但是在第一次登陆之后不管怎样都不能全屏,只有登陆之后退出再登陆的时候才可以全屏,这是为什么啊?大牛们给看看jsc#浏览器
<head runat="server">
<title></title>
<script type="text/javascript">
function OpenPage() {
var udswin = window.open("Default.aspx", "_blank", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no");
udswin.moveTo(0, 0);
udswin.resizeTo(window.screen.availWidth, window.screen.availHeight);
window.opener = null;
window.open('', '_parent', '');//不显示是否关闭窗体提示框
window.close();
udswin.focus(); //浏览器全屏
//var WshShell = new ActiveXObject('WScript.Shell')
//WshShell.SendKeys('{F11}');
}
</script>
</head>
<body onload="OpenPage();">
<form id="form1" runat="server">
<div>
</div>
</form>
</body>
</html>写了这样一个页面,目的是在登陆之后让网页全屏显示,但是在第一次登陆之后不管怎样都不能全屏,只有登陆之后退出再登陆的时候才可以全屏,这是为什么啊?大牛们给看看jsc#浏览器
if(window.name=="fullscreen")return;
var a =window.open("","fullscreen","fullscreen=yes")
a.location = window.location.href
window.opener=null
window.close()
}
<body onload="toFull()">
当前页全屏
或者 resizable=no ==》resizable=yes 试下