屏幕上并排显示两个图像,位于灯箱中?
谁能建议一个灯箱,在激活时可以并排显示至少两个图像?
我的想法是使用它而不是下拉菜单。当“书籍”悬停在我的菜单上时,我想打开一个灯箱,显示两个图像......并排,每个图像都有一个链接,允许用户选择“小说”或“非小说” ”。
我意识到有些人可能会问我为什么要这样做而不是使用像下拉菜单这样更实用的解决方案。
Can anyone suggest a lightbox that will display at least two images side by side when activated?
My idea is to use this instead of a dropdown menu. When "Books" is hovered on my menu, I'd like to have a lightbox open, showing two images....side by side, each with a link that will allow the user to select "Fiction" or "Non-Fiction".
I realize that some people may ask why would I want to do this instead of using a more practical solution like dropdown.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我是 fancyBox 的粉丝,但实际上任何支持 HTML 内容的灯箱都可以使用。然而,不用装箱
img
,而是只需装箱div
或一些包含两个图像的容器(当然,您需要一些 CSS 来使其看起来不错)。I'm a fan of fancyBox, but really any lightbox that supports HTML content would work. Instead of boxing an
img
, however, just box adiv
or some container with two images instead (of course, you'll need some CSS to make it look nice).我会使用支持 Iframe 的灯箱。构建您的页面,对其进行设计,然后就可以开始了。
I would use a light box that supports Iframes. Build your page, stile it, and off you go.
除了前面提供的答案之外,我发现以下答案很有用:
两页视图jQuery.fancyBox
问题已按照此处的建议解决,但是具体的 代码给出了示例。
In addition to the answers provided earlier, I found the following answer useful:
Two-page view with jQuery.fancyBox
The problem is resolved as proposed here, however a concrete code example is given.