customboxs
v4.0.5
Published
基于纯Javascript和CSS3构建模态对话框,支持多窗口
Downloads
7
Maintainers
Readme
Customboxs
基于纯Javascript和CSS3构建模态对话框,支持多窗口。在开源的基础进行了修改,以支持z-index属性的支持。
期间如有冒犯原创造者,请联系我。
Usage
npm:
npm install customboxs
Alternatively, download the package and reference the JavaScript and CSS files manually:
<script src="custombox.min.js"></script>
<link rel="stylesheet" type="text/css" href="custombox.min.css">
Optional legacy file for along for the older browsers.
<script src="custombox.legacy.min.js"></script>
Basic usage
new Custombox.modal({
overlay: {
color: "#000", //遮罩层颜色
opacity:0.5, //遮罩层透明度,默认0.48
zIndex: 9997 //遮罩层 z-index
},
content: {
effect: 'fadein',
target: '#modal'
}
}).open();