爲什麼這不是一個新窗口中打開打開?要鏈接到新窗口
<a href="http://www.authorsden.com/visit/viewwork.asp?id=49784&AuthorID=157940">
<img src="authors_den.jpg" target="blank" alt="Authors Den Link"
width="175px" border="0"/>
</a>
爲什麼這不是一個新窗口中打開打開?要鏈接到新窗口
<a href="http://www.authorsden.com/visit/viewwork.asp?id=49784&AuthorID=157940">
<img src="authors_den.jpg" target="blank" alt="Authors Den Link"
width="175px" border="0"/>
</a>
目標被稱爲_blank
不blank
。另外,您應該在錨標記a
上使用它。
<a target="_blank" alt="Authors Den Link" href="http://www.authorsden.com/visit/viewwork.asp?id=49784&AuthorID=157940">
<img src="authors_den.jpg" width="175px" border="0"/>
</a>
你可能指的是「_blank」,而不是「空白」,但更大的問題是:
的target="_blank"
部分應在<a>
標籤,而不是<img>
標籤。
<a target="blank" href="http://www.authorsden.com/visit/viewwork.asp?id=49784&AuthorID=157940">
<img src="authors_den.jpg" alt="Authors Den Link" width="175px" border="0"/>
</a>
目標= 「_blank」 – DrStrangeLove
感謝,更新了我的答案。 –
只是屬性
target="_blank"
添加到您的錨標記
塊引用$(函數(){ $( 「A」)。ATTR( 「目標」,」 _blank「); });
'blank'和'_blank'在技術上都有效,其中'blank'是窗/框的名稱。不同的行爲,可能是'_blank'是OP想要的,但我只是覺得需要挑選。 –
@Madmartigan好吧,這_might_是真實的。當我學習HTML時,我猜它是無效的。 - http://www.w3schools.com/tags/att_a_target.asp – Smamatti
儘管[W3Schools的不是權力(http://w3fools.com/),您鏈接的頁面能夠正確提到*'「framename」' *作爲一個有效的值,所以如果你的「framename」是「空白」,這將是合法的。 –