2016-11-04 81 views
0

有人可以幫我href鏈接。在html5中的超鏈接不像預期的那樣打開

當我在html編輯器中添加href鏈接時,它不會單獨打開,但它會跟隨我的網站鏈接。

例子:我想開一家www.google.com當我添加這個看起來像

www.mysite.com/www.google.com 

我怎麼能解決這個問題嗎?

+0

還發布您的代碼示例爲更好地瞭解 – Nilabja

+0

把你的代碼段, –

回答

0

不知道你的代碼,但試試這個:

<a href="http://www.yoursite.com">I'm a link!</a> 

這是默認href

編輯:

也許如果你有href這樣的:(whitout的 「HTTP」 )

<a href="www.yoursite.com">I'm a link!</a> 

Web瀏覽器認爲它是s omething這樣的:

<a href="/contact.html">Contact</a> 
+0

很抱歉,如果我的英文不好:/英語不是我的第一語言 – rencinas

+1

非常感謝它通過增加工作也只是https :) –

+0

下一次@MohammedSaad粘貼你的代碼,會很容易找到問題 – rencinas