都三天了,快逼疯了,使用Accordion 点击Head没反应,不折叠 - Web 开发 / Ajax
如果,以下是代码,大家给指点下吧,拜托了
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %><%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title>无标题页</title> <style type="text/css"> .accordionContent { background-color:#D3DEEF; border:1px dashed #2F4F4F; border-top:none; padding:5px; padding-top:10px; } </style></head><body> <form id="form1" runat="server"> <div> <asp:ScriptManager ID="ScriptManager1" runat="server" /> </div> <asp:Accordion ID="Accordion1" runat="server" EnableViewState="false" FadeTransitions="true" TransitionDuration="200" ContentCssClass="accordionContent" FramesPerSecond="30" AutoSize="None" RequireOpenedPane="false" SuppressHeaderPostbacks="true"> <Panes> <asp:AccordionPane ID="AccordionPane1" runat="server"> <Header><a href="" onclick="return false;">Accordion介绍</a></Header> <Content> Accordion 是一个可以让你的页面显示多个Panel面板 </Content> </asp:AccordionPane> <asp:AccordionPane ID="AccordionPane2" runat="server"> <Header><a href="" onclick="return false;">Accordion属性介绍</a></Header> <Content> AutoSize 属性可以用来控制 Accordion 控件的显示和排版的方式 </Content> </asp:AccordionPane> <asp:AccordionPane ID="AccordionPane3" runat="server"> <Header><a href="" onclick="return false">Accordion存在的问题</a></Header> <Content> 在 IE 6 和 IE 7 中 AutoSize 属性的 Limit 和 Fill 将呈现相同的形式 </Content> </asp:AccordionPane> </Panes> </asp:Accordion> </form></body></html>