请教一下,在C#中开发 B/S 模式窗体,怎样实现全屏效果,就是 窗体的地址栏,状态栏,标题栏不能有。
解决方案 »
- js比较高深的写法模式有哪些
- 求助一个匹配指定字符集之外字符的正则,谢谢,这里高手多
- checkbox 如何选中区间
- 求助,JavaScript定时器的问题,在线等;帮我看看是哪里错了?
- 完美E-Mail正则表达式,附详细讲解,请大家帮忙测试一下!
- document.form.ssss.value=XXXXX其中ssss为变量,怎么写
- 急!急!急!怎样在网页中用VBscript脚本语言加入用VB编写的ACTIVEX文档?
- 新手小白求解,哪里出问题啦
- $.get()总是执行不成功
- 如何实现html下拉菜单提交后保留选中值而不返回默认值
- extjs combobox 严重问题
- 高手帮我想下怎么解决
试看...
window.open ('http://www.baidu.com','newwindow','fullscreen=1,toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no')
</SCRIPT>
var x = screen.availWidth;
var y = screen.availHeight;
window.open(url, 'makeful', 'fullscreen=yes,channelmode=yes,titlebar=no,toolbar=no,scrollbars=auto,resizable=no,status=no,copyhistory=no,location=no,menubar=no,width='+x+',height='+y);
}
fullscreen 在xp sp2下已经是被屏蔽了具体可看:
Users of Internet Explorer got sick of Web sites opening a window
fullscreen and "stealing" their desktop. In a lot of cases, people had no
idea how to rid themselves of the fullscreen page. Many Windows users do
not know about Alt+Tab and even those that do found themselves in a
situation where they could Alt+Tab away from the fullscreen IE window,
but when they returned to Internet Explorer, they found it occupying
their entire desktop again.Of course, the simple solution to the problem is to bring the fullscreen
IE window into focus and hit Alt+F4 to close it - assuming the site
author hasn't written client-side JavaScript to intercept Alt+F4, which
I've also seen - however, the sequence of commands to close the
fullscreen window can be considered pretty complicated for a lot of
computer users, and I've seen people hit the reset button when presented
with a fullscreen IE window they could not figure out how to close.To remove some user anxiety and make the Web a less hostile place,
Microsoft has wisely chosen to now display a title and status bar on
every newly opened window by default - the status bar (and perhaps the
titlebar) can be removed by the end-user if they so wish, but the Web
site author has no control over those settings.Even if you have no malicious intent, the potential for mis-use remains,
and as a result, the functionality has been removed.
this.WindowState = FormWindowState.Maximized;
是不行的f11 才行。