【发布时间】:2021-12-29 23:11:39
【问题描述】:
在我的应用程序中,我为之前上传的附件创建了一个小预览。所以这里要打开,需要右键预览,需要选择在新标签页中打开。
除了选择之外,当用户单击图像时,我如何更改它在新选项卡上打开它?
<td>
<img alt="" width="100" height="100" class="ml-1" src="@Url.Action("RetrieveImage", new { id = item.Id } )"
</td>
我已经尝试过了,但是在获取图像的 Item pass 中显示错误
<img alt="" width="100" height="100" class="ml-1" src="@Url.Action("RetrieveImage", new { id = item.Id } , new { @target="_blank"})"
【问题讨论】:
标签: c# html asp.net-mvc asp.net-mvc-4