摆脱HTML文件中的file:/// c://

sss*_*121 2 html

我将html保存在我的本地驱动程序中(c:/).

我在我的html文件中执行下一步:

<td><a href="www.google.com">Google</a></td>
Run Code Online (Sandbox Code Playgroud)

当我打开它,然后点击链接时,它会进入: file:///C:/www.google.com

我怎么能摆脱这个 file://c:/

Joh*_*ica 5

您需要放在http://域名前面.否则,它会链接到与HTML文件位于同一目录中的名为"www.google.com"的文件.

<td><a href="http://www.google.com">Google</a></td>
Run Code Online (Sandbox Code Playgroud)