.Net 的 Accordion 怎么通过js设置高度呢?

JavaScript087

.Net 的 Accordion 怎么通过js设置高度呢?,第1张

<cc2:Accordion ID="Accordion1" runat="server" SelectedIndex="0" FadeTransitions="true" FramesPerSecond="20" TransitionDuration="250"

AutoSize="none" Height="100%" Width="100%">

<Panes>

<cc2:AccordionPane ID="AccordionPane1" runat="server" HeaderCssClass="accordionHeader" ContentCssClass="accordionContent" >

<Header>基本管理工具</Header>

<Content>

</Content>

</cc2:AccordionPane>

<Pane>

</cc2:Accordion>

<div class="AccordionPanelTab" onmouseover="Accordion1.openPanel(this.parentNode)">

添加 onmouseover="Accordion1.openPanel(this.parentNode)"这部分代码就可以了。

注意js代码里 Accordion1 和上面的对应。

<script type="text/javascript">

var Accordion1 = new Spry.Widget.Accordion("Accordion1")

</script>