0

是否可以用 word 打开一个 html 文档,并在文档中使用锚链接?

基本上,这样做会很好:

<html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
  <head></head>
  <body>
    <h1>Florida Emergency Supplier Network for 2009-2011</h1>
    <table id='table_of_contents'>
      <tr>
        <th></th>
        <th><a href="#service_list">Browse by Services</a></th> !!! THIS LINKS TO 
                                                                    THE CORRECT LOCATION
                                                                    IN THE DOCUMENT.
      </tr>                                                                     /
    </table>                                                                   /
    <hr />                                                                    /
    <h1 id='service_list'>Service List</h1>                 <----------------/
       ....more stuff here...
  </body>
</html>

现在,当我按住 Ctrl 并单击链接时,它们不会转到正确的位置。

编辑 不幸的是,使用名称字段也不起作用,据我所知......还有其他想法吗?

4

1 回答 1

2

尝试这样做:

<a name="service_list" />
<h1>Service List</h1> 

或这个:

<a name="service_list"><h1>Service List</h1></a>
于 2010-02-11T12:54:28.780 回答