@Ajax.ActionLink(" ","Delete", "FinancialIntermediary",
new { id = item.FinancialIntermediaryID },
new AjaxOptions { HttpMethod = "GET",
OnSuccess = "DeleteSuccessFI",
Confirm = "are you sure to perform the deletion." },
new { @class="classname" })
css 文件是
.classname
{
background-image:url('../../Images/delete.png');
}
我使用上面的代码来设置要删除的背景图像。
通过这样做,我无法避免文本。它是这样的
我只想要那个地方的图片。请帮忙