2017-03-21 194 views
0
<html> 
<body> 
<a href = "www.google.com" target = "blank_">google</a> 
</body> 
<html> 

我能得到什麼:www.mysite.com/www.google.com試圖鏈接到外部網站

我想什麼:www.google.com/

回答

1

您需要在URL的開頭處有http://

<html> 
<body> 
<a href = "http://www.google.com" target = "blank_">google</a> 
</body> 
<html> 
0

那是因爲你還沒有與URL書面HTTP,

試試這個

<a href="https://www.google.com" target="_blank">Google</a> 
相關問題