当ASP.NET UpdatePanel具有可滚动的div时,在Windows 10的IE11中,部分回发会闪烁。

问题描述 投票:0回答:1
UpdatePanel在用户单击导致部分回发的按钮时闪烁,当该按钮位于该updatepanel内部的可滚动div元素内时(当未滚动的div不闪烁时)。随着div中元素数量的增加,闪烁会变得更强。问题是如何消除闪烁。

此问题仅在Windows 10下的IE11中出现。在其他浏览器中,即使在Windows 8.1下的IE11中,一切正常,该问题也不会再次发生。

我在Windows 10上的IE11版本(在Windows 10上的旧IE11中,存在相同的错误)

enter image description here

我的测试页aspx代码(我刚刚使用此页面创建了一个空的Web项目)

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestIEFlicker.aspx.cs" Inherits="IEFlickering.TestIEFlicker" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></title> </head> <body> <form id="form1" runat="server"> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:UpdatePanel runat="server" ID="UpdatePanel1" UpdateMode="Conditional"> <ContentTemplate> <div style="width: 1000px; height: 300px; background-color: antiquewhite; overflow-x: auto;"> <div style="width: 1500px; height: 200px; background-color: aquamarine;"> <asp:Button ID="Button1" runat="server" UseSubmitBehavior="true" /> </div> </div> </ContentTemplate> </asp:UpdatePanel> </form> </body> </html>

请帮助,当客户升级到Windows 10并且是他们继续使用IE11时,此问题将完全破坏我的公司应用程序。

以这种方式滚动用于网站的许多元素,GridView,DetailsViews等。它看起来非常难看。

[UpdatePanel在用户单击导致部分回发的按钮时闪烁,当按钮位于该updatepanel内的可滚动div元素内时(当没有滚动的div不会...时>

c# asp.net webforms windows-10 internet-explorer-11
1个回答
0
投票
© www.soinside.com 2019 - 2024. All rights reserved.