单击我们在css

时间:2016-03-02 15:19:01

标签: javascript jquery html css

这是我现有的下拉列表:

@Html.DropDownList("ddlMailSignature", (IEnumerable<SelectListItem>)ViewBag.MailSignature, "Mail Signature", new { @class = "select2" })

是否可以使用我在应用程序中添加的图像获取相同的下拉列表?下面是我的图像的CSS。

.MailSignature {
  background: url(../img/signature.png) no-repeat;
  width: 20px;
  height: 15px;
  float: right;
}

1 个答案:

答案 0 :(得分:0)

默认下拉列表目前无法使用此功能。但是你可以尝试使用一个可以用事件打开/关闭的选择框的插件。 检查this answer