问题描述
在做应用程序布局时,发现非常奇怪的问题,打开页面test1.aspx,点击按钮,会发现滚动条不断往左侧移动,程序是用vs2005+ajax2.0写的,没有任何后台代码,浏览器为ie6.0,为何会这样呢,请各位有兴趣来研究一下,谢谢。附文件:test1.aspx==========<%@PageLanguage="C#"AutoEventWireup="true"CodeFile="test1.aspx.cs"Inherits="test1"%><htmlxmlns="http://www.w3.org/1999/xhtml"><headrunat="server"><title>无标题页</title><styletype="text/css">*{margin:0px;padding:0px;}body{width:100%;height:100%;overflow:scroll;overflow-x:hidden;SCROLLBAR-FACE-COLOR:#B5DAEE;SCROLLBAR-HIGHLIGHT-COLOR:#B5DAEE;SCROLLBAR-SHADOW-COLOR:#B5DAEE;SCROLLBAR-3DLIGHT-COLOR:#B5DAEE;SCROLLBAR-ARROW-COLOR:#699FBC;SCROLLBAR-TRACK-COLOR:#E6F3F9;SCROLLBAR-DARKSHADOW-COLOR:#E6F3F9;}.Frame{height:100%;}.FrameMain{width:100%;border-right:#699FBC4pxsolid;border-top:#699FBC1pxsolid;border-left:#699FBC4pxsolid;border-bottom:#699FBC1pxsolid;}</style></head><bodystyle="overflow:auto;overflow-y:hidden;margin:2px;"><formid="form1"runat="server"><tableclass="Frame"width="100%"border="0"cellpadding="0"cellspacing="0"><tr><tdclass="FrameMain"><iframeid="FrameMain"scrolling="no"frameborder="0"marginwidth="0"marginheight="0"width="100%"height="100%"src="test2.aspx"></iframe></td></tr></table></form></body></html>test2.aspx==========<%@PageLanguage="C#"AutoEventWireup="true"CodeFile="test2.aspx.cs"Inherits="test2"%><%@RegisterAssembly="System.Web.Extensions,Version=1.0.61025.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35"Namespace="System.Web.UI"TagPrefix="asp"%><!DOCTYPEhtmlPUBLIC"-//W3C//DTDXhtML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><headrunat="server"><title>无标题页</title><styletype="text/css">*{margin:0px;padding:0px;}body{width:100%;height:100%;overflow:scroll;overflow-x:hidden;SCROLLBAR-FACE-COLOR:#B5DAEE;SCROLLBAR-HIGHLIGHT-COLOR:#B5DAEE;SCROLLBAR-SHADOW-COLOR:#B5DAEE;SCROLLBAR-3DLIGHT-COLOR:#B5DAEE;SCROLLBAR-ARROW-COLOR:#699FBC;SCROLLBAR-TRACK-COLOR:#E6F3F9;SCROLLBAR-DARKSHADOW-COLOR:#E6F3F9;}</style></head><body><formid="form1"runat="server"><div><asp:ScriptManagerID="ScriptManager1"runat="server"></asp:ScriptManager><tablewidth="100%"border="1"><tr><tdwidth="50%">1</td><tdwidth="50%"><asp:UpdatePanelID="UpdatePanel1"runat="server"><ContentTemplate><asp:ButtonID="Button1"runat="server"Text="Button"></asp:Button></ContentTemplate></asp:UpdatePanel></td></tr></table></div></form></body></html>
解决方案
解决方案二:
学习up
解决方案三:
我的没问题奇怪楼主你机器问题?
解决方案四:
样式控制的问题~
解决方案五:
那究竟是什么样式问题?能详细说下
解决方案六:
换个好鼠标!