简体   繁体   English

VS 10 mangles html注释?

[英]VS 10 mangles html comments?

Using the latest VS 10 we created html markup, then commented it with html comments. 使用最新的VS 10,我们创建了html标记,然后使用html注释对其进行了注释。 The file on disk is not mangled, but when it renders, it renders the html comment tags, then removes some of the html markup within the commented tags: 磁盘上的文件未损坏,但是在呈现时会呈现html注释标签,然后删除已注释标签中的一些html标记:

Two questions (1) why would it not like the html comment tags and (2) why would it change the html content between the comment marks? 两个问题(1)为什么不喜欢html注释标记,以及(2)为什么会在注释标记之间更改html内容? It physically removed the TD tag. 它实际上删除了TD标签。 This is also using the 2010 MVC project. 这也正在使用2010 MVC项目。

Original: 原版的:

 <!--
    <td width="165" valign="top">
       <a href="saving.html">
          <img src="images/marquee_edlp.jpg" width="165" height="180" alt=" " border="0">
       </a>
    </td>
 -->

Altered: 已更改:

 <!-->
    <a href="saving.html">
       <img src="images/marquee_edlp.jpg" alt=" " border="0" height="180" width="165">
    </a>
 --&gt;

It seems that you are alone in this one. 看来您很孤单。
Try the new RC bits to see if it fixes your problem. 尝试使用新的RC位,看看它是否可以解决您的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM