我在我的頁面的Youtube HTML iframe嵌入在IE的輪廓,這是代碼:的Youtube HTML5 iframe嵌入有玩
<iframe src="http://www.youtube.com/embed/gI2eO_mNM88?rel=0&autohide=1&color=white&showinfo=0&theme=dark&wmode=transparent&hd=1" width="470" height="264" frameborder="0" allowfullscreen webkitAllowFullScreen></iframe>
如果我按下播放鍵我在IE9 + 8得到一個虛線1px的輪廓。我有這在我的CSS:
embed,
object {
outline: 0;
overflow: hidden
}
但這似乎沒有幫助。它沒有在Chrome或FF(都是最新版本)中獲得大綱。我也嘗試將iframe放入與iframe具有相同尺寸的div中,並給出該div溢出:隱藏,但沒有運氣。
不是一個非常乾淨的解決方案,但迄今爲止最好的解決方案。謝謝。 – 2012-08-17 12:19:46