1

I have a Local HTML document that I want to have an Anchor Tag (<a>) open a Website, however the URL Code being sent is

http://www.my%20%20%20%20%20%20%20%20firerules.net/

which apparently has 8 embedded spaces for some reason.

Here is the call (from within a Table (<tb>) in the HTML document):

<a href="http://www.myfirerules.net" target="_blank">MFR.net Link</a>

The new browser window is opened, however the Address being opened is:

[http://www.my%20%20%20%20%20%20%20%20firerules.net/]

rather than

[http://www.myfirerules.net] 

as the href= says to do.

Can anyone tell me how to correct this?

4

1 回答 1

0

首先,您上面的链接(在编辑问题之前)写成:

<"a href="http://www.myfirerules.net" target="_blank">MFR.net Link<"/a">

你的意思:

<a href="http://www.myfirerules.net" target="_blank">MFR.net Link</a>

其次,如果您在实际代码中的属性中间href有换行符和/或缩进,这可能会导致目标 URL 中包含空格。

于 2012-11-24T22:19:05.643 回答