JavaScript蒙板(model)功能的简单实现代码
思路:•创建一个蒙板, 设置蒙板的堆叠顺序保证能将其它元素盖住position: absolute;top: 0;left: 0;display: none;background-color: rgba(9, 9, 9, 0.63);width: 100%;height: 100%;z-index: 1000; •设置蒙板中内容的背景色和展示格式width: 50%;text-align: center;background: #f...