问题描述
有人知道用纯 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灯箱(对话框覆盖)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!



大气响应式网络建站服务公司织梦模板
高端大气html5设计公司网站源码
织梦dede网页模板下载素材销售下载站平台(带会员中心带筛选)
财税代理公司注册代理记账网站织梦模板(带手机端)
成人高考自考在职研究生教育机构网站源码(带手机端)
高端HTML5响应式企业集团通用类网站织梦模板(自适应手机端)