Khi bạn nhúng một iframe youtube như thế này:
<iframe width="560" height="315" src="http://www.youtube.com/embed/FSHDDteCBXw" frameborder="0" allowfullscreen></iframe>
Các wmode mặc định sẽ làm cho tất cả mọi thứ lớp phủ video khác, giải pháp là chỉ cần thêm wmode = opaque vào cuối src ="? http://www.youtube.com/embed/FSHDDteCBXw"
như thế này:
<iframe width="560" height="315" src="http://www.youtube.com/embed/FSHDDteCBXw?wmode=opaque" frameborder="0" allowfullscreen></iframe>
Nguồn
2012-02-25 14:54:14
Tìm thấy câu trả lời ở đây: http://stackoverflow.com/questions/3820325/overlay-opaque-div- over-youtube-ifra tôi thêm? wmode = opaque vào iframe src url –
Tôi cũng cần '& rel = 0' – Tom