标题:
真正的页面全屏处理办法
[打印本页]
作者:
fangzhen
时间:
2009-7-15 23:30
标题:
真正的页面全屏处理办法
1.首先要定义好样式
<style type="text/css">
html,body {
width:100%;
overflow:hidden;
margin:0px;
}
</style>
2.打开浏览器后用F11,强制全屏就ok了。
一个简单的例子
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>开奖公告双色球</title>
<link href="css/kj.css" rel="stylesheet" type="text/css" />
<script language="javascript">
var endsecond=120;
var num=0;
var endtime=0;
function second(){
num=num+3;
endtime=endsecond-num;
if(endtime < 0) {
window.location.href = "open_ssq.php";
}
}
function startclock(){
document.getElementById('starttime').style.display = "none";
document.getElementById('pausetime').style.display = "";
se=setInterval("second()",3000);
}
function pauseclock(){
document.getElementById('starttime').style.display = "";
document.getElementById('pausetime').style.display = "none";
clearInterval(se);
}
function stopclock(){clearInterval(se);ss=1;m=h=s=0;}
</script>
<style type="text/css">
html,body {
width:100%;
overflow:hidden;
margin:0px;
background-image:url(images/nopic.gif);
}
</style>
</head>
<body>
<div id="starttime" class="timer">
<img src="images/start.png" style="cursor:hand" />
</div>
<div id="pausetime" style="display:none" class="timer">
<img src="images/stop.png" style="cursor:hand" />
</div>
</body>
</html>
欢迎光临 PHP开发笔记 (http://phpvi.com/)
Powered by Discuz! 6.1.0