超文本链接图像不显示,不起作用 [英] hypertext link image is not displayed and does not work

查看:139
本文介绍了超文本链接图像不显示,不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<% foreach (var item in Model) { %>
    <tr>

        <td style="background-color: #9966FF; width: 110px;">

            <%: Html.ActionLink("Modifier", "Edit", new { id=item.IdUser })
             %>
            <input type="image",,src="../../Image/edit-validated.png"  />



            <%: Html.ActionLink("Détails", "Details", new { id=item.IdUser })
             %>
            <input type="image",src="../../Image/6327_logos_icon.png" />



            <%: Html.ActionLink("Supprimer", "Delete", new { id=item.IdUser })
             %>
            <input type="image",src="../../Image/DeleteRed.png" />


        </td>







此结构是否正确?

超链接图片不显示!!!并且它不起作用!!!!




this structure is correcte??
the hyperlink Image does not display!!! and it does not work!!!!

推荐答案

因为图像不显示!!!

这可能是因为您在Image控件中添加了额外的逗号,使其成为无效的HTML标记。

because the image does not display!!!
This might be because of the extra commas you put in Image control making it an invalid HTML markup.
<input type="image",,src="../../Image/edit-validated.png"  />



纠正所有图像,例如:


Correct all your images like:

<input type="image" src="../../Image/edit-validated.png"  />



看看是否是那样的你在寻找什么。


See if thats what you were looking for.


这篇关于超文本链接图像不显示,不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆