asp.net – CalendarExtender定位问题
发布时间:2021-01-11 20:35:09 所属栏目:asp.Net 来源:互联网
导读:我将一个CalendarExtender添加到页面,使用默认样式.当我点击日历按钮来触发日历弹出时,日历显示正常.但是,当我向下滚动并再次单击按钮时,日历的位置不在于它应该在哪里,如下所示. alt text http://ktrauberman.wordpress.com/files/2009/06/calendarproblem.g
我将一个CalendarExtender添加到页面,使用默认样式.当我点击日历按钮来触发日历弹出时,日历显示正常.但是,当我向下滚动并再次单击按钮时,日历的位置不在于它应该在哪里,如下所示. alt text http://ktrauberman.wordpress.com/files/2009/06/calendarproblem.gif 为什么会这样发生,我该如何解决? 编辑:有关该页面的实现. CalendarExtender和TextBox是添加到SharePoint 2007页面的WebPart的一部分.我正在创建扩展器: textBox = new TextBox() { ID = "textBox" }; Controls.Add(textBox); calendar = new CalendarExtender() { ID = "ceStartDate",TargetControlID = textBox.ID,PopupPosition = CalendarPosition.Right,PopupButtonID = image.ID }; Controls.Add(calendar); 解决方法什么是页面 DOCTYPE?还有什么浏览器呢?在具有IE6-7的无效/旧DOCTYPE的页面中,我在Quirks模式下看到这个问题.在怪异模式下,javascript值(如滚动位置)可以关闭,导致渲染不良.你应该确保你有一个有效的DOCTYPE,迫使IE进入标准模式,如.. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> (编辑:4S站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
推荐文章
站长推荐
- asp.net – VirtualPathUtility.ToAbsolute()VS.
- asp.net-mvc – 如何组合两个dataTextFields的Se
- asp.net – 我应该在.gitingore文件中包含.vs文件
- asp.net-mvc-3 – 局部视图中的RenderSection
- asp.net-mvc – Url.RouteUrl返回null
- ASP.NET 程序中删除文件夹导致session失效问题的
- asp.net – Orchard CMS和Sitefinity CMS
- asp.net-core – 使用IdentityServer4生成访问令
- asp.net – 我可以愚弄HttpRequest.Current.Requ
- asp.net-mvc – asp.net MVC antiorgerytoken异常
热点阅读