IE 6本地html链接已断开.NET webbrowser

IE 6本地html链接已断开.NET webbrowser,html,internet-explorer,browser,hyperlink,Html,Internet Explorer,Browser,Hyperlink,我的应用程序中嵌入了WebBrowser。我正在加载一个html文档,其中包含指向文档中其他部分的链接。下面是如何创建链接的示例 ... <span style='color:blue;mso-no-proof:yes'> <a href="#_Toc179681722">21-20-1 Distribution Damper <span style='color:windowtext;display:none;mso-hide:screen;text

我的应用程序中嵌入了WebBrowser。我正在加载一个html文档,其中包含指向文档中其他部分的链接。下面是如何创建链接的示例

...
<span style='color:blue;mso-no-proof:yes'>
  <a href="#_Toc179681722">21-20-1 Distribution Damper
     <span style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;text-underline:none'>
        <span style='mso-tab-count:1 dotted'> </span>
     </span>
     <!--[if supportFields]><span style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;text-underline:none'>
        <span style='mso-element:field-begin'></span>
     </span>
     <span style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;text-underline:none'> PAGEREF _Toc179681722 \h </span>
     <span style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;text-underline:none'>
        <span style='mso-element:field-separator'></span>
     </span><![endif]-->
     <span style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;text-underline:none'>21.1</span>
     <span style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;text-underline:none'>
        <!--[if gte mso 9]><xml> <w:data>08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000E0000005F0054006F0063003100370039003600380031003700320032000000</w:data>
        </xml><![endif]-->
     </span><!--[if supportFields]>
     <span style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;text-underline:none'>
        <span style='mso-element:field-end'></span>
     </span><![endif]-->
  </a>
</span>
...
。。。
...
当我使用我的开发机器(有IE8)并加载文档时,所有链接都正常工作

当我将文档加载到生产机器(具有IE 6)上并单击一个链接时,它会显示一个新页面,其中包含文本“blank”\u Toc179681722”以及其他内容

注意:我可能要补充的是,这个html文档是从MicrosoftWord创建的,我无法控制语法的更改


有人知道发生了什么吗?如何修复它?

我没有看到你链接的结束标记

许多较新的浏览器将为您修复此问题,并重新解释html。IE6可能没有做到这一点,导致url运行异常。

能否将“\u Toc179681722”设置为希望
元素指向的范围的id


显示一个新页面肯定是不寻常的,因为一个未找到的标记应该只是简单地将您重定向到页面顶部而没有错误。()

很抱歉。。。我没有包括整个代码段。。。请参阅上面更新的代码。它有结尾