ms-dropdown
插件引导程序只应用插件中编写的预定义css,如何覆盖它?
$(document).ready(function (e) {
try {
alert('Enter');
$("#<%=ddlBrand.ClientID %>").msDropDown();
} catch (e) {
alert(e.message);
}
});
<asp:DropDownList ID="ddlBrand" runat="server" Width="515px" TabIndex="6" OnSelectedIndexChanged="ddlBrand_SelectedIndexChanged"></asp:DropDownList>
<link href="../Styles/Vehicle/dd.css" rel="stylesheet" type="text/css" />
<script src="../Scripts/Vehicle/jquery.dd.js" type="text/javascript"></script>
enter code here
C#代码
protected void ddlBrand_SelectedIndexChanged(object sender, EventArgs e)
{
Bindtitle();
}
private void Bindtitle()
{
if (ddlBrand != null)
{
foreach (ListItem li in ddlBrand.Items)
{
li.Attributes["title"] = System.Web.VirtualPathUtility.ToAbsolute("~/Images/Vehicles/BrandLogo/" + li.Text + ".png");
}
}
}