ASP .NET - CollapsiblePanelExtender不工作IE7 [英] ASP .NET - CollapsiblePanelExtender does not work in IE7

查看:165
本文介绍了ASP .NET - CollapsiblePanelExtender不工作IE7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我运行的是ASP .NET AJAX工具包3.5。

I am running the ASP .NET AJAX Toolkit 3.5.

我已经安装了collapsablePanelExtender面板,它工作在Firefox 3.5,但不是在IE7!在IE7中所有的崩溃面板永不收缩 - 激活按钮,什么也不做。

I have setup a panel with a collapsablePanelExtender and it works in Firefox 3.5 but not in IE7! In IE7 all the "collapsed" panels never shrink - activating the button does nothing.

我的code:

<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>

是不是有什么毛病code?

Is there something wrong with the code?

我一直使用的DOCTYPE是:

The DOCTYPE I have been using is:

<!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:

看起来好像点击导致面板'隐藏'了片刻前的按钮重新出现。

It looks as though clicking on the button resulting in the panel 'hiding' for a brief moment before it re-appears.

推荐答案

我只是检查了code在IE8,Firefox和Chrome,它似乎与他们的合作。刚检查出来的IE8,让我知道,如果它的工作原理。

I just checked the code in IE8, Firefox and Chrome and it seems to be working with all of them. Just check it out on IE8, and let me know if it works.

无论是IE7设置,或者浏览器本身出现故障。 code是蛮好的。

Either IE7 settings, or the browser itself is at fault. Code is just fine.

这篇关于ASP .NET - CollapsiblePanelExtender不工作IE7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆