本文介绍了简单&小,纯的javascript灯箱(对话框叠加)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人知道一个小的,有限的功能灯箱,用纯粹的javascript构建?这是一个可嵌入的小部件,因此不使用jquery的原因。我真正需要的是创建一个特定的div的覆盖,或者只是传递一些HTML。

解决方案

有一个很好的列表/比较灯箱。您可以快速扫描哪些需要JS库(jQuery,MooTools等),哪些不需要,您还可以看到每个支持的功能。有一大堆人不使用任何JS库,所以你应该可以轻松找到一个,以满足你的需要。



这里有几个让你开始:







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.

解决方案

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:

这篇关于简单&小,纯的javascript灯箱(对话框叠加)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-30 15:11