【问题标题】:Display document according category in HTML在 HTML 中按类别显示文档
【发布时间】:2014-11-18 18:56:38
【问题描述】:

我有一个名为“shoes.html”的 HTML 页面和一个名为“clothes.html”的 HTML 页面。在这些 HTML 页面中,一个 div 中有一些文档。

我想做的是创建一个新的 HTML 页面,该页面的访问者可以选择是否要阅读有关鞋子或衣服的文档。然后根据他的选择,就会出现合适的文件。

我该怎么做?

【问题讨论】:

    标签: html document categories categorization


    【解决方案1】:

    这就是为什么你在 HTML 中有链接。

    <html>
    
    <head>
      <title>Select Clothes or Shoes</title>
    </head>
    
    <body>
      <h1>Select what you want to see</h1>
      <p>
        <a href="shoes.html">Go visit shoes</a>
      </p>
      <p>
        <a href="clothes.html">Go visit clothes</a>
      </p>
    </body>
    
    </html>

    您的clothes.htmlshoes.html 必须与此 HTML 文件位于同一位置。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2023-03-03
      • 1970-01-01
      • 1970-01-01
      • 2011-10-12
      • 2013-09-03
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多