style
html
JS
方法二
html
JS
方法三
html
JS
方法四 JQUERY
html
CSS
fullScreen.js
调用
<html><head>
<title>test</title>
<script language="JavaScript">
function Fkey(){
var WsShell = new ActiveXObject('WScript.Shell')
WsShell.SendKeys('{F11}')
}
</script>
</head>
<body>
<a href="javascript:Fkey()">屏幕切换</a>
</body>
</html>