1
下面是代码:为什么这个锚点href在Firefox中不起作用?
<a href="http:\\www.drdanialbari.com" target="_blank"> Preview </a>
它工作在Internet Explorer中,不能在Firefox。 Firefox在链接中添加了一个前缀,并将访问者带到“http://www.albariogroup.net/\www.drdanialbari.com”,该链接给出了404错误。它似乎是将父网页URL添加为前缀。
它应该像IE一样直接跳转到http:\\www.drdanialbari.com
。
是否有可能是因为你用“斜肌”(反斜线),而不是正斜杠的网址是什么?即它应该是'http://'。 – 2011-05-29 03:26:49