1: ie6
2:css body{zoom:1;font-size:12px;}其它的浏览器好像不可能

解决方案 »

  1.   

    JS 
    window.showModalDialog
    window.showModelessDialog
    都可以showModelessDialog Method  Internet Development Index --------------------------------------------------------------------------------Creates a modeless dialog box that displays the specified HTML document.SyntaxvReturnValue = window.showModelessDialog(sURL [, vArguments] [, sFeatures])
    ParameterssURL Required. String that specifies the URL of the document to load and display. 
    vArguments Optional. Variant that specifies the arguments to use when displaying the document. Use this parameter to pass a value of any type, including an array of values. The dialog box can extract the values passed by the caller from the dialogArguments property of the window object. 
    sFeatures Optional. Variant of type String that specifies the window ornaments for the dialog box, using one or more of the following semicolon-delimited values: dialogHeight:sHeight Sets the height of the dialog window (see Res for default unit of measure). 
    dialogLeft:sXPos Sets the left position of the dialog window relative to the upper-left corner of the desktop. 
    dialogTop:sYPos Sets the top position of the dialog window relative to the upper-left corner of the desktop. 
    dialogWidth:sWidth Sets the width of the dialog window (see Res for default unit of measure). 
    center:{ yes | no | 1 | 0 | on | off } Specifies whether to center the dialog window within the desktop. The default is yes. 
    dialogHide:{ yes | no | 1 | 0 | on | off } Specifies whether the dialog window is hidden when printing or using print preview. This feature is only available when a dialog box is opened from a trusted application. The default is no. 
    edge:{ sunken | raised } Specifies the edge style of the dialog window. The default is raised. 
    help:{ yes | no | 1 | 0 | on | off } Specifies whether the dialog window displays the context-sensitive Help icon. The default is yes. 
    resizable:{ yes | no | 1 | 0 | on | off } Specifies whether the dialog window has fixed dimensions. The default is no. 
    scroll:{ yes | no | 1 | 0 | on | off } Specifies whether the dialog window displays scrollbars. The default is yes. 
    status:{ yes | no | 1 | 0 | on | off } Specifies whether the dialog window displays a status bar. The default is yes for untrusted dialog windows and no for trusted dialog windows. 
    unadorned:{ yes | no | 1 | 0 | on | off } Specifies whether the dialog window displays the border window chrome. This feature is only available when a dialog box is opened from a trusted application. The default is no. 
     Return ValueVariant that returns a reference to the new window object. Use this reference to script properties and methods on the new window.
      

  2.   

    在window.resize里面拦截?
    没有做过
      

  3.   


    <html>
    <head>
    <title>测试</title>
    <script language="javascript">
     var scrollFunc=function(e){ 
      e=e || window.event; 
      if(e.wheelDelta && event.ctrlKey){//IE/Opera/Chrome 
       event.returnValue=false;
      }else if(e.detail){//Firefox 
       event.returnValue=false; 
      } 
     }  
     
     /*注册事件*/ 
     if(document.addEventListener){ 
     document.addEventListener('DOMMouseScroll',scrollFunc,false); 
     }//W3C 
     window.onmousewheel=document.onmousewheel=scrollFunc;//IE/Opera/Chrome/Safari 
      
    </script>
    </head><body style="font-size:30px;">
     <br>SCRIPT脚本控制页面不随ctrl+鼠标滚轮而缩放。<br>
     <br>CSS可以控制页面文字大小不随浏览器设置而改变。
    </body>
    </html>
      

  4.   

    好像  window.resize  =function  (){return  false } 不知道能行    浏览器 不好搞  禁止不完整
      

  5.   

    <script language="javascript">
     var scrollFunc=function(e){ 
      e=e || window.event; 
      if(e.wheelDelta && event.ctrlKey){//IE/Opera/Chrome 
       event.returnValue=false;
      }else if(e.detail){//Firefox 
       event.returnValue=false; 
      } 
     }  
     
     /*注册事件*/ 
     if(document.addEventListener){ 
     document.addEventListener('DOMMouseScroll',scrollFunc,false); 
     }//W3C 
     window.onmousewheel=document.onmousewheel=scrollFunc;//IE/Opera/Chrome/Safari 
      
    </script>
      

  6.   

    明知不专业,就不要弄,不要管,找懂的人处理。再看你下面的要求,果然不专业,果然不合理,当然也就不可能。不想让用户浏览的时候放大缩小页面?你管这个干嘛?再说你也管不着啊。不论你在页面里用什么技术,用户只要按一下PRINT键就抓屏了,粘到画图板里,爱放多大就放多大,你有招吗?难道你想禁止用户抓图,那不仅要屏蔽按键,还要禁止用户操作系统里的若干系统DLL文件里的相应API函数(这样才能杜绝不按键但使用专业抓图程序的可能),这是地道黑客级别的事情。总之一句话,外行就找内行去,要不就自己学成内行,否则,以你现在这种表现,最尴尬。
      

  7.   

    实现不了,如ie8右下角的更改缩放级别功能
    及chrome中的缩放功能,这些都是浏览器的工具栏中的一部分功能,是无法被屏蔽的。
      

  8.   

    Response.Write("<script language=javascript>window.open" & _
                    "('Que_Result_online.aspx?=full&t_id=" & testid & "','test_online'," & _
                    "'fullscreen=3,titlebar=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes," & _
                    "resizable=yes,edge:Raised,left=0,top=0,width=400,height=300,false');</script>")
    这样就可以了
      

  9.   

    11楼的应该可以,现在的浏览器都有按住ctrl时滚动鼠标滑轮可以缩放页面文字大小的功能,用js禁掉这个就可以了
      

  10.   

    另外谢谢各位的耐心回答。我在去跟帮我们做网页的公司提需求的时候,我说了这个问题的。他们答应可以帮我们搞定这个问题,我们限制在windows 7 ie9上浏览这个页面。再次谢谢。
      

  11.   

    LZ的需求确实是不可能实现的,别人说可以实现,那是忽悠你你也说了,win7 ie9。现在的主流浏览器都会有一个放大缩小页面的功能,这个功能用JS,CSS,后台程序都是不可能禁用的,除非用户自己禁止这个功能。
      

  12.   

    有个onresize事件,禁止触发可以了
      

  13.   

    那个theforever,说说看你有多专业?我现在在搞在线编辑sql,也就是用网页模拟sql数据库管理器的开发界面,目前已做到编辑状态录入字符时即时变更色彩,除了语法提示外,应该说编辑功能已经非常接近sqlserver2000的功能了。以后慢慢扩充数据表提示,字段提示,语法提示,向2008+靠拢。
    现在在做撤销操作,也就是常用的ctrl+z。IE文字框自带的根本不好用,大家都知道。
    为了实现这个功能,需要记录下当前的输入游标的位置点,撤销操作时便于恢复定位。
    IE下寻找文字框里的游标位置点很麻烦,虽然有简单的办法可以找到,但如果超过100行的程序,恐怕按一个字母就得等四五秒才能算出来(还有个办法也简单,获取截至当前点的文字内容,然后算行数,col数,但这个办法在有滚动条的情况下,会让滚动条乱跳,因此放弃)。目前虽然已经大幅优化,160行的程序耗费的时间都在0.2秒左右。但担心上千行的代码就得等两三秒了。
    因此想用计算当前游标的像素点高度/line-height简单获取行数,但问题来了,如果使用者进行过缩放,则此方法无效,行高不固定了。而在原始缩放状态下,就是固定的。所以请问下专业的theforever,有没有办法处理好这个问题呢?
    担心你喷我不专业,搞无用的东西。所以我再说点背景,我在为公司开发web版简易开发软件(集成数据表定义,页面开发,js和sp编写,报表设计。全部web化,全部我一个人搞定。当然产生的数据有其它小组负责。目前已进入实际应用阶段),由于公司是多点的,而且可能邀请学生或者外包开发,在这种情况下,开放数据库显然不符合公司保密原则。
    估计又有人想问,文字框怎么变色,自己思考吧。就我而言,开始使用了div contentEditable,但发现div的编辑非常不稳定,还是不如textarea,所以又转回textarea了。
      

  14.   


    感谢GOD!!让我没认识你~!
      

  15.   

    即便限制ctrl+滚轮不触发事件,用户直接点浏览器的缩放按钮一样可以自由缩放页面。我们现在的项目也碰到了这个问题,期待高手解答。
      

  16.   

    如果是html禁止手机页面放大缩小的话
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
      

  17.   

    ctrl+鼠标滚轮那么实现禁止。但是ctrl+ "+" 或者 ctrl+ "-" 还是没办法禁止啊~~~~~