2013-03-10 32 views
1

問題

IE 8將錨名稱嵌入到標題中。在下面的圖片我們可以看到它嵌入#home錨IE嵌入到標題的錨名稱#

它不會發生在Chrome或Firefox

Bug Image

+1

感謝的Adobe。 http://stackoverflow.com/questions/6436142/url-anchor-is-attached-to-the-title-attribute-in-internet-explorer-why上次我有這個問題,更新通過JavaScript幾次後稱號Flash被插入到頁面中解決了它。 – DCoder 2013-03-10 15:40:50

回答

0

耶,加入

<script type="text/javascript"> 
// <![CDATA[ 
window.onload = function() 
{ 
    document.title = "My Website Title"; 
} 
// ]]> 
</script> 

要的底部頁面 - 在</body>之前做到了!