【发布时间】:2016-03-02 15:19:00
【问题描述】:
这是我现有的下拉列表:
@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;
}
【问题讨论】:
-
哦,这个答案是为了在悬停时显示列表。但我猜这对我没有帮助。那么是不是不可能在点击时为图片创建下拉菜单?
标签: javascript jquery html css