当前位置:网站首页>手指点击屏幕就模拟进入F11进入全屏
手指点击屏幕就模拟进入F11进入全屏
2022-07-01 09:08:00 【你的长情呢~】
window.onclick = document.onclick = function (e) {
fullScreen();
}
function fullScreen() {
var el = document.documentElement;
var rfs = el.requestFullScreen || el.webkitRequestFullScreen ||
el.mozRequestFullScreen || el.msRequestFullScreen;
if (typeof rfs != "undefined" && rfs) {
rfs.call(el);
} else if (typeof window.ActiveXObject != "undefined") {
//for IE,这里其实就是模拟了按下键盘的F11,使浏览器全屏
var wscript = new ActiveXObject("WScript.Shell");
if (wscript != null) {
wscript.SendKeys("{F11}");
}
}
}
html不需要写什么,只使用这段js就可以了
边栏推荐
- Shell脚本-if else语句
- 2.3 【kaggle数据集 - dog breed 举例】数据预处理、重写Dataset、DataLoader读取数据
- 【ESP 保姆级教程】疯狂毕设篇 —— 案例:基于阿里云、小程序、Arduino的WS2812灯控系统
- Shell script - special variables: shell $, $*, [email protected], $$$
- Naoqi robot summary 28
- Which method is good for the management of fixed assets of small and medium-sized enterprises?
- Tree structure --- binary tree 1
- Summary of reptile knowledge points
- 3D printing Arduino four axis aircraft
- Redis source code learning (29), compressed list learning, ziplist C (II)
猜你喜欢

3D printing Arduino four axis aircraft

FAQ | FAQ for building applications for large screen devices

2.2 【pytorch】torchvision.transforms

FreeRTOS learning easy notes

树结构---二叉树2非递归遍历

Pain points and solutions of equipment management in large factories

Why is the Ltd independent station a Web3.0 website!

How to manage fixed assets well? Easy to point and move to provide intelligent solutions

Microcomputer principle - bus and its formation

Personal decoration notes
随机推荐
Common interview questions for embedded engineers 2-mcu_ STM32
【ESP 保姆级教程 预告】疯狂Node.js服务器篇 ——案例:ESP8266 + MQ系列 + NodeJs本地服务 + MySql存储
猿人学第20题(题目会不定时更新)
Databinding source code analysis
Shell脚本-case in语句
2.4 activation function
Jetson nano installs tensorflow GPU and problem solving
【pytorch】transforms.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5))
[ESP nanny level tutorial preview] crazy node JS server - Case: esp8266 + MQ Series + nodejs local service + MySQL storage
nacos簡易實現負載均衡
Serialization, listening, custom annotation
Shell脚本-特殊变量:Shell $#、$*、[email protected]、$?、$$
Shell script echo command escape character
3D打印Arduino 四轴飞行器
【ESP 保姆级教程 预告】疯狂Node.js服务器篇 ——案例:ESP8266 + DHT11 +NodeJs本地服务+ MySQL数据库
LogBack
[ESP nanny level tutorial] crazy completion chapter - Case: gy906 infrared temperature measurement access card swiping system based on the Internet of things
Installation and use of NoSQL database
Shell脚本-while循环详解
树结构---二叉树1