请问各位大侠哥哥 如何固定设置一个页面最小宽度后,使得满屏浏览器大小无法被鼠标拖动而改变大小

解决方案 »

  1.   

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Index.aspx.cs" Inherits="Index" %><html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">  <style type="text/css">
     body
    {
    margin: 0px;
    width: 100%;
    height: 100%;
    overflow: auto;
    border-bottom-style: none;
    border-top-style: none;
    border-left-style: none;
    border-right-style: none;
    scrollbar-face-color: #F9F9F9;
    scrollbar-highlight-color: #FFFFFF;
    scrollbar-shadow-color: Silver;
    scrollbar-3dlight-color: #999999;
    scrollbar-arrow-color: #999999;
    scrollbar-track-color: #FFFFFF;
    scrollbar-darkshadow-color: #FFFFFF;
    filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#FFFFFF, EndColorStr=#EFEFEF);
    } </style>
    <meta http-equiv="Content-Type " content= "text/html; charset=gb2312"> </head>
    <frameset rows="67,*,25" cols="*" framespacing="0" frameborder="no" border="0"> 
         <frame src="about:blank" name="topFrame" id="topFrame"  scrolling="No" noresize="noresize"  />
         <frameset cols="193,8,*" rows="*" id="ContentFrame"  onload="" frameborder="no"  border="0" framespacing="0" >
                 <frame src="left.aspx"  name="leftFrame" id="leftFrame" scrolling="No" noresize="noresize" />
                 <frame src="switch.html" name="switch" id="switch" scrolling="No" noresize="noresize" /> 
                 <frame src="News.aspx" name="mainFrame" id="mainFrame" scrolling="yes" runat="server"  marginheight="0" marginwidth="0" noresize="noresize"  />   
          </frameset>      
          <frame src="Foot.aspx" noresize="noresize" name="footFrame" scrolling="No" marginheight="0" marginwidth="0"frameborder="0" id="footFrame"/>
          <noframes>
            <body>
                <form id="form1" runat="server">
                    <div>
                    对不起你的浏览器不支持框架
                    </div>
                </form>
            </body>
          </noframes>
    </frameset>
    </html>
    大侠哥, 像我这个页面没有 body,怎么设置呢
      

  2.   

    你是要操作页面的内容区域还是浏览器窗口?
    如果是浏览器窗口可以用window.open("A.htm","_blank","width=200,height=100,resizable=no");
    不过,现在的浏览器都是多选项卡式的了,新选项卡打开就是原来的窗口大小,所以这样做意义不大
      

  3.   

    那你设置绝对大小试试,像用百分比,magrin magrin-left,padding之类的
      

  4.   

     首页Index如果不给它设置个最小宽度的话,鼠标拖动页面后能把这个页面缩小到 很小很小,公司要求满屏的页面 给它一个最小宽度,让这个Index.aspx页面鼠标拖动缩小到设置的这个最小宽度后不能再缩小窗口