jquery lightbox plugin: Bug on IE7 and IE8!

前提是你 提交于 2019-12-04 21:31:20

Regarding lightboxing I always use prettyPhoto, because:

  1. it’s very much flexible and it has an API which enables you to make your images totally and fully customizable without binding any data to your inline images.

  2. Also if you are developing using a server side language then using this API makes your code more readable and maintainable.

  3. it also supports, videos, iframes, etc...

Here is the pretty photo website: http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/

and here is the API documentation (Bottom of the page): http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/documentation/

If you're using jQuery, Colorbox is a great lightbox.

View the demo to see how easily Colorbox works with YouTube.

It's lightweight at only ~10 KB and supports photos, grouping, slideshows, ajax, inline, and iframed content.

It works in Firefox 3+, Safari 4+, Chrome, Internet Explorer 6+, Opera 11.

Just add the following to the end of your iframe source:

&wmode=opaque

i.e.

<iframe src="//www.youtube.com/embed/5_sfnQDr1-o&amp;wmode=opaque" frameborder="0" allowfullscreen></iframe>

Basically, earlier versions of Internet Explorer will treat an embedded YouTube video as the top-most element.

Source: http://howchoo.com/g/make-your-lightbox-display-over-an-embedded-youtube-video-in-ie8

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!