使用 fancybox +全屏选项
在我的网站中,我有一些图像,我将它们显示在一个 fancybox 中。一切正常,但现在网站的要求是为照片提供全屏模式,全屏的意思是我想在我的 fancybox 底部添加一个按钮,当用户单击该按钮时,当前图像(fancybox 图像)必须以全屏模式显示。
全屏示例: http://buildinternet.com/project/supersized/slideshow/3.2 /demo.html
但这个例子不适合我的情况,因为在全屏模式之前我仍然需要 fancybox。
那么有人有一些代码可以分享,或者有一些好的库,我可以通过 jQuery Fancybox 和一些全屏 api 进行集成? 谢谢
in my website, I have some images which I am displaying them inside a fancybox. Everything working ok, but now the requirement of the website is to have a Fullscreen mode for the photos, What I mean by fullscreen is I want a add a button at the bottom of my fancybox, and when the user click on that button, the current image(fancybox image) has to be displayed in fullscreen mode.
Example of fullscreen: http://buildinternet.com/project/supersized/slideshow/3.2/demo.html
But this example doesnt fit in my situation because I still need the fancybox before the fullscreen mode.
So someone has some code to share or some good library that I can do that integration btw jQuery Fancybox and some fullscreen api?
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
以下步骤将满足您的要求:
上面的步骤就可以做到这一点。 Fancybox 和 Supersized 都需要进行一些自定义,但您将能够实现您想要的效果。
The following steps will do what you're looking for:
The above steps will do it. There is a bit of customization required for both Fancybox and Supersized but you will be able to achieve your desired effect.