为什么代码是“src”在aspx页面中再次生成html代码后是“原始”吗?

发布于 2024-11-08 13:28:00 字数 2567 浏览 0 评论 0原文

在 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 我不知道这可能是错误的原因。

请建议一种方法来做到这一点。

多谢。

In aspx page code as follow:

<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>

After code generation is 'original' in html page

    <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>

I use jquery.translate.js i don't know this can be the cause of the error or not.

Please suggest a way to do this.

Thanks a lot.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

漫雪独思 2024-11-15 13:28:00

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

<img .... />

Try to put / at end of each img tag...

<img .... />
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文