我想在 img 标签中显示一个整数,这是我的代码:
<img src="@Url.Content("~/Content/Images/icons/Circle_White.png")" alt="Alternate Text" style="position:absolute;" />
@Html.ActionLink("ViewCommand", "ViewCommand", "Work")
现在我想在圆圈中显示我的整数,有人可以帮我吗???谢谢
最佳答案
为此创建一个 div,
- 在div中显示整数值
- 将背景设置为您在
~/Content/Images/icons/Circle_White.png
中的图像
这是我知道的一种方式
关于css - 在 mvc 3 razor 中将整数值显示到 img 标签中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11878421/