http://jqueryui.com/demos/accordion/#custom-icons
我想在下面的Accordian中添加箭头图标。我应该如何修改我的代码?急需帮助。日Thnx
<cc1:Accordion ID="Accordion1" runat="server" FadeTransitions="true" Visible="true" AutoSize="None"SelectedIndex="0" RequireOpenedPane="false" TransitionDuration="250"
HeaderCssClass="accordionHeader toggler"
HeaderSelectedCssClass="accordionHeader toggler-expanded" ContentCssClass="accordionContent">
<HeaderTemplate>
<b style="color: Black">
<%#Eval("Ques")%>
</b>
<ContentTemplate>
<p> <%#DataBinder.Eval(Container.DataItem, "QuesAns")%></p>
</ContentTemplate>
</cc1:Accordion>
答案 0 :(得分:0)
改变:
.toggler {
background:url("/images/icons/plus.png") no-repeat left center transparent;
}
.toggler-expanded {
background-image:url("/images/icons/minus.png");
}
为:
.toggler {
background:url("path/to/yourimage.png") no-repeat left center transparent;
}
.toggler-expanded {
background-image:url("path/to/yourimage.png");
}
但你应该看看jQuery theming。