如何添加指向与主 html 页面保存在同一文件夹中的 html 页面的链接?我正在使用 jquery mobile

发布于 2024-10-06 17:03:22 字数 590 浏览 0 评论 0原文

我想添加一个名为“Prueba_jQMobile”的页面的链接,该页面与其他 html 页面和 jquery 库一起保存在本地文件夹中。这是代码:

<ul data-role="listview" data-theme="b">
  <li><a href="#vacuna">Vacunas</a></li>                 <!-- is working well -->
  <li><a href="http://jquerymobile.com/">Test</a></li>   <!-- is working well -->
  <li><a href="Prueba_jQMobile.html">jQueryTest</a></li> <!-- isn't working -->
</ul>

谢谢。

更新:我用 firefox 执行了 html 页面(之前使用的是 chrome)并且打开了链接,但是是纯文本形式,没有设计。我要继续测试它。

I want to add a link to a page named "Prueba_jQMobile", that is saved in a local folder with the others html page and jquery libraries. This is the code:

<ul data-role="listview" data-theme="b">
  <li><a href="#vacuna">Vacunas</a></li>                 <!-- is working well -->
  <li><a href="http://jquerymobile.com/">Test</a></li>   <!-- is working well -->
  <li><a href="Prueba_jQMobile.html">jQueryTest</a></li> <!-- isn't working -->
</ul>

Thanks.

Update: I executed the html page with firefox (before was using chrome) and the link was opened, but in plain text without the design. I'm going to continue testing it.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

天赋异禀 2024-10-13 17:03:22

尝试: JQueryTest

Try : <a href="Prueba_jQMobile.html" rel="external">JQueryTest</a>

溺ぐ爱和你が 2024-10-13 17:03:22

那么当您点击链接时它不会打开?

尝试:

<a href="./Prueba_jQMobile.html">jQueryTest</a>

So it doesn't open, when you click on the Link?

try:

<a href="./Prueba_jQMobile.html">jQueryTest</a>
Smile简单爱 2024-10-13 17:03:22

尝试 /Prueba_jQMobile.html 或者如果它位于更高的目录 ../Prueba_jQMobile.html

try /Prueba_jQMobile.html or if it's in a higher directory ../Prueba_jQMobile.html

琴流音 2024-10-13 17:03:22

在 URI 之前使用哈希值。
它应该是 jQueryTest

Use the hash befor the URI.
It should be <a href="#Prueba_jQMobile.html">jQueryTest</a>

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文