我正在運行ASP .NET AJAX Toolkit 3.5。ASP .NET - CollapsiblePanelExtender在IE7中不起作用
我用collapsablePanelExtender設置了一個面板,它適用於Firefox 3.5,但不適用於IE7!在IE7中,所有「摺疊」的面板永遠不會縮小 - 激活按鈕什麼也不做。
我的代碼:
<asp:ImageButton ID="btnA" runat="server" ImageUrl="~/Image/expand.gif" />
<asp:Panel ID="pnlA" runat="server" >
<!-- grid -->
<asp:GridView ID="gridA" runat="server"
AllowPaging="True" AllowSorting="True"
DataSourceID="sdsA" GridLines="Vertical">
</asp:GridView>
</asp:Panel>
<cc1:CollapsiblePanelExtender ID="cpeA" runat="server"
Enabled="True" TargetControlID="pnlA"
CollapsedSize="0" ExpandedSize="300" Collapsed="true" ScrollContents="true"
ExpandControlID="btnA" CollapseControlID="btnA"
ExpandDirection="Vertical" ExpandedImage="~/Image/collapse.gif"
CollapsedImage="~/Image/expand.gif"
ImageControlID="btnA" AutoExpand="false" SuppressPostBack="true">
</cc1:CollapsiblePanelExtender>
是不是有什麼毛病的代碼?
我一直使用的DOCTYPE是:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
我也試過:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" >
UPDATE1:
看起來好像上導致面板按鈕點擊在它重新出現之前暫時「隱藏」一段時間。
可能是IS部門在與IE7有關的網絡設置方面所做的......哦,好吧。 – 2009-12-03 20:59:15