为什么代码是“src”在aspx页面中再次生成html代码后是“原始”吗?
在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试将 / 放在每个 img 标签的末尾...
Try to put / at end of each img tag...