为什么代码是' src'在html代码生成之后的aspx页面中再次出现'原始'?

时间:2011-05-19 10:53:32

标签: html asp.net-mvc image

在aspx页面代码中如下:

<div id="translate_popup" style="display:none;">
        <table class="translate_links"><tbody><tr>
        <td valign="top">            
            <a title="English" href="#"  rel="en" class="languagelink"><img height="11" width="16" alt="English" src="<%=Url.Content("~/Content/Images/transparent.gif") %>" class="translate_flag en"> English</a>
            <a title="Arabic" href="#" rel="ar" class="languagelink"><img height="11" width="16" alt="العربية" src="<%=Url.Content("~/Content/Images/transparent.gif") %>" class="translate_flag ar"> العربية</a>
            <a title="Bulgarian" href="#" rel="bg" class="languagelink"><img height="11" width="16" alt="български" src="<%=Url.Content("~/Content/Images/transparent.gif") %>" class="translate_flag bg"> български</a>
            <a title="Catalan" href="#" rel="ca" class="languagelink"><img height="11" width="16" alt="català" src="<%=Url.Content("~/Content/Images/transparent.gif") %>" class="translate_flag ca"> català</a>

... 
</td></tr></tbody></table></div>

代码生成在html页面中是'原创'

    <div style="left: 301px; top: 2854px; display: block;" id="translate_popup">
            <table class="translate_links"><tbody><tr>
            <td valign="top">

                <a class="languagelink" rel="en" href="#" title="English"><img height="11" width="16" class="translate_flag en" alt="English" original="/6147/Content/Images/transparent.gif" style=""> English</a>
                <a class="languagelink" rel="ar" href="#" title="Arabic"><img height="11" width="16" class="translate_flag ar" alt="العربية" original="/6147/Content/Images/transparent.gif" style=""> العربية</a>
                <a class="languagelink" rel="bg" href="#" title="Bulgarian"><img height="11" width="16" class="translate_flag bg" alt="български" original="/6147/Content/Images/transparent.gif" style=""> български</a>
                <a class="languagelink" rel="ca" href="#" title="Catalan"><img height="11" width="16" class="translate_flag ca" alt="català" original="/6147/Content/Images/transparent.gif" style=""> català</a>

...             
</td></tr></tbody></table>
</div>

我使用jquery.translate.js我不知道这可能是错误的原因。

请建议一种方法。

非常感谢。

1 个答案:

答案 0 :(得分:0)

尝试将 / 放在每个img标记的末尾...

<img .... />