宽度固定了,页面就不缩放了
现在浏览器用的都是全页缩放技术,这个恐怕禁止不了,即使博客园这种定宽的也照样缩放
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="chentao">
<META NAME="Keywords" CONTENT="test">
<META NAME="Description" CONTENT="just for test">
</HEAD>
<BODY >
还能变大么?
在firefox 4.0
IE8下测试通过
<script type="text/javascript">
var key =false;
function keydown(e){
e = e || window.event;
key = e.keyCode;
key =e.ctrlKey;
}
var scrollFunc=function(e){
var direct=0;
e=e || window.event;
alert(key);
if(key)
{
if(document.addEventListener)
{
e.preventDefault();
}
else
{
window.event.returnValue = false;
}
return false;
}
}
/*注册事件*/
if(document.addEventListener){
document.addEventListener('DOMMouseScroll',scrollFunc,false);
}//W3C
window.onmousewheel=document.onmousewheel=scrollFunc;//IE/Opera/Chrome/Safari
window.onkeydown = document.onkeydown = keydown;
</script>
</BODY>
</HTML>
New Document 还能变大么? 在firefox 4.0 IE8下测试通过
顶了,,javascript 够给力