将target =“_ blank添加到我的代码中?(无效)

时间:2017-04-11 04:54:04

标签: javascript html css

<a href="http://www.moddb.com/downloads/start/121000?referer=http%3A%2F%2Fwww.moddb.com%2Fmods%2Fthe-great-conqueror%2Fdownloads"><img src="http://thegreatconqueror.weebly.com/uploads/8/5/2/5/85251306/download.png" onmouseover="this.src='http://thegreatconqueror.weebly.com/uploads/8/5/2/5/85251306/download2.gif'" onmouseout="this.src='http://thegreatconqueror.weebly.com/uploads/8/5/2/5/85251306/download.png'" /></a>

我知道我需要一个目标=“_空白,但在我放置它的任何地方它都无法工作..请帮忙!

2 个答案:

答案 0 :(得分:2)

你可以试试这个......

<a href="http://www.moddb.com/downloads/start/121000?referer=http%3A%2F%2Fwww.moddb.com%2Fmods%2Fthe-great-conqueror%2Fdownloads" target="_blank">
<img src="http://thegreatconqueror.weebly.com/uploads/8/5/2/5/85251306/download.png" onmouseover="this.src='http://thegreatconqueror.weebly.com/uploads/8/5/2/5/85251306/download2.gif'" onmouseout="this.src='http://thegreatconqueror.weebly.com/uploads/8/5/2/5/85251306/download.png'" /></a>

答案 1 :(得分:0)

<a href="http://www.moddb.com/downloads/start/121000?referer=http%3A%2F%2Fwww.moddb.com%2Fmods%2Fthe-great-conqueror%2Fdownloads" target="_blank"><img src="http://thegreatconqueror.weebly.com/uploads/8/5/2/5/85251306/download.png" onmouseover="this.src='http://thegreatconqueror.weebly.com/uploads/8/5/2/5/85251306/download2.gif'" onmouseout="this.src='http://thegreatconqueror.weebly.com/uploads/8/5/2/5/85251306/download.png'" /></a>

我猜你把它放在了错误的地方

相关问题