2
我有几个移动网页。其中有几个是从同一个文件(index.php)内部链接并且工作正常。例如:#first到#second和#second到#third。当我到达#third并将表单查询提交到外部文件process.php(它位于同一目录中)时,问题就出现了。我可以很好地访问process.php文件,但我需要在此页面上插入一个超链接来链接回原始页面(#first index.php内)。我尝试了几个建议,但不管我做了什么浏览器似乎追加index.php的URL,所以实际上把我带回#third而不是#first。jQuery Mobile的内部/外部链接问题
EG:http://localhost/website/third.php#index.php
我曾尝试:
<a href="index.php">Clicky</a>
<a href="#first">Clicky</a>
<a href="/website/index.php">Clicky</a>
<a href="..index.php">Clicky</a>
<a href="http://localhost/website/index.php">Clicky</a>
似乎都让我回到与任何我已经要求在年底被带到一个附加#后面的第三页网址。有任何想法吗?
嗨。感谢您的回应。是的,我试过了,它将我带到以下URL:localhost/website/process.php#index.php#first – Seven 2011-04-16 20:50:40
尝试Clicky – 2011-04-16 20:53:16
谢谢。这工作。必须改变一些其他内部链接来完成目录链接,但现在全部链接在一起。好东西。 – Seven 2011-04-16 22:20:03