关于VS2008的Accordion控件的问题
_A 2010-08-02 01:40:16 <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!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">
.head{background-color:Gray;cursor:pointer;text-decoration:none;}
.content{background-color:Blue;}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<br />
<cc1:Accordion ID="Accordion1" runat="server" AutoSize="Limit" FadeTransitions="false" SelectedIndex="0">
<Panes>
<cc1:AccordionPane ID="AccordionPane1" runat="server">
<Header><a href="" onclick="return false;">出来吧!1</a></Header>
<Content>出来了出来了!</Content>
</cc1:AccordionPane>
<cc1:AccordionPane ID="AccordionPane2" runat="server">
<Header><a href="" onclick="return false;">出来吧!2</a></Header>
<Content>出来了出来了!</Content>
</cc1:AccordionPane>
<cc1:AccordionPane ID="AccordionPane3" runat="server">
<Header><a href="" onclick="return false;">出来吧!3</a></Header>
<Content>出来了出来了!</Content>
</cc1:AccordionPane>
</Panes>
</cc1:Accordion>
</div>
</form>
</body>
</html>
以上是我的页面代码,为何我点击标题,它不能自动收缩/打开面板呢?
需要点击一下然后刷新才能打开选择的面板
大哥们帮帮忙啊!