Simple amp; small, pure javascript lightbox (dialog overlay)?(简单amp;小的纯javascript灯箱(对话框覆盖)?)
问题描述
有人知道用纯 JavaScript 构建的小型、功能有限的灯箱吗?这是一个可嵌入的小部件,因此不使用 jquery 的原因.我真正需要的是为特定的 div 创建一个叠加层,或者只是传递一些 HTML.
Does anyone know of a small, limited functionality lightbox built with pure javascript? This is for an embeddable widget, thus the reason of not using jquery. All I really need is creating an overlay for a specific div or simply by passing some HTML.
推荐答案
有一个很棒的灯箱列表/比较 这里.您可以快速扫描哪些需要 JS 库(jQuery、MooTools 等)哪些不需要,还可以查看每个支持的功能.其中有相当大的一部分不使用任何 JS 库,因此您应该能够轻松找到满足您需求的一个.
There's a great list/comparison of lightboxes here. You can quickly scan which require a JS library (jQuery, MooTools, etc.) and which don't, and you can also see what features each supports. There's a sizable chunk of them that don't use any JS library, so you should be able to easily find one to suit your needs.
这里有一些可以帮助您入门:
Here's a few to get you started:
- EnlargeIt!
- 浮动框
- iBox
这篇关于简单&小的纯javascript灯箱(对话框覆盖)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:简单&小的纯javascript灯箱(对话框覆盖)?


- 如何使用 JSON 格式的 jQuery AJAX 从 .cfm 页面输出查 2022-01-01
- 失败的 Canvas 360 jquery 插件 2022-01-01
- addEventListener 在 IE 11 中不起作用 2022-01-01
- 使用RSelum从网站(报纸档案)中抓取多个网页 2022-09-06
- Quasar 2+Apollo:错误:找不到ID为默认的Apollo客户端。如果您在组件设置之外,请使用ProvideApolloClient() 2022-01-01
- Fetch API 如何获取响应体? 2022-01-01
- 400或500级别的HTTP响应 2022-01-01
- Flexslider 箭头未正确显示 2022-01-01
- CSS媒体查询(最大高度)不起作用,但为什么? 2022-01-01
- Css:将嵌套元素定位在父元素边界之外一点 2022-09-07