全屏展示
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <button onclick="fullScreen()">�ִ������ȫ��</button> <button onclick="exitScreen()">�ִ�������˳�</button> <button onclick="iefull()">�Ͱ汾ieȫ��</button> </body> <script src="js/jquery-2.1.1.js" type="text/javascript" charset="utf-8"></script> <script type="text/javascript"> //ȫ�� function fullScreen(){ var el = document.documentElement; var rfs = el.requestFullScreen || el.webkitRequestFullScreen || el.mozRequestFullScreen || el.msRequestFullscreen; if(typeof rfs != "undefined" && rfs) { rfs.call(el); }; return; } //�˳�ȫ�� function exitScreen(){ if (document.exitFullscreen) { document.exitFullscreen(); } else if (document.mozCancelFullScreen) { document.mozCancelFullScreen(); } else if (document.webkitCancelFullScreen) { document.webkitCancelFullScreen(); } else if (document.msExitFullscreen) { document.msExitFullscreen(); } if(typeof cfs != "undefined" && cfs) { cfs.call(el); } } //ie�Ͱ汾��ȫ�����˳�ȫ����������� function iefull(){ var el = document.documentElement; var rfs = el.msRequestFullScreen; if(typeof window.ActiveXObject != "undefined") { //��ķ��� ģ��f11����ʹ�����ȫ�� var wscript = new ActiveXObject("WScript.Shell"); if(wscript != null) { wscript.SendKeys("{F11}"); } } } //ע��ie����ActiveX�ؼ�����Ҫ��ie�������ȫ��������� ��δ���Ϊ�ɰ�ȫִ�нű���ActiveX�ؼ���ʼ����ִ�нű��� ����Ϊ���� </script> </html>
Put the favorites in the favorites and empty the favorites.