所属分类:对话框,弹出层

jQuery对话框、模态窗插件Remodal

43173 浏览 355 收藏 16 留言
ie兼容8

插件描述

Remodal 是一个扁平化,响应式,轻量,快速,容易定制的模态窗口插件。使用声明式状态符号和哈希(Hash)跟踪。所有现代的浏览器都支持。您可以轻松地定义为模态窗口定义背景容器(如模糊效果)。

更新时间
2017-05-27 17:42
下载量
849
所需 JQ 币
3
分类
UI / 对话框,弹出层

详细内容

Remodal 

响应,轻巧,快速,与CSS动画同步,完全可定制的模态窗口插件

使用方法

在头部分包含dist文件夹中的CSS文件:

<link rel="stylesheet" href="dist/remodal.css">
<link rel="stylesheet" href="dist/remodal-default-theme.css">

在</ body>之前的dist文件夹中包含JS文件:

<script src ="dist/remodal.min.js"> </script>

您可以为模态定义背景容器(如模糊效果)。它可以是任何简单的内容包装器:

<div class =“remodal-bg”>
...页面内容...
</ DIV>

现在创建模态对话框:

<div class="remodal" data-remodal-id="modal">
  <button data-remodal-action="close" class="remodal-close"></button>
  <h1>Remodal</h1>
  <p>
    Responsive, lightweight, fast, synchronized with CSS animations, fully customizable modal window plugin with declarative configuration and hash tracking.
  </p>
  <br>
  <button data-remodal-action="cancel" class="remodal-cancel">Cancel</button>
  <button data-remodal-action="confirm" class="remodal-confirm">OK</button>
</div>

不要使用ID属性,如果你想避免锚跳,用data-remodal-id.

所以,现在你可以用哈希函数调用它:

<a href="#modal">Call the modal with data-remodal-id="modal"</a>

或:

<a data-remodal-target="modal">Call the modal with data-remodal-id="modal"</a>

选项

您可以使用data-remodal-options属性传递其他选项。

<div class="remodal" data-remodal-id="modal"
  data-remodal-options="hashTracking: false, closeOnOutsideClick: false">
  <button data-remodal-action="close" class="remodal-close"></button>
  <h1>Remodal</h1>
  <p>
    Responsive, lightweight, fast, synchronized with CSS animations, fully customizable modal window plugin with declarative configuration and hash tracking.
  </p>
  <br>
  <button data-remodal-action="cancel" class="remodal-cancel">Cancel</button>
  <button data-remodal-action="confirm" class="remodal-confirm">OK</button>
</div>

关键词:模态窗,对话框,弹窗,弹出层,Remodal ,jquery,jquery插件

讨论这个项目 (16)

CarnivalMask
模态框不能设置样式和位置吗?
平凡之路
我想在百度地图marker 调用此函数如何调用
1993
如果要做多个删除怎么在OK按钮上做删除事件呢
像空气丶像大地
很不错,支持一下
Qitain
支持
JM’У尐文

为什么加载出来的自己模糊呢,打开f12一下就好了

xxxlance

感谢分享

归零

点击遮罩层会关闭模态框怎么解决啊?

归零

已解决

万商维盟-王伟

怎么解决的?

zhang_js521

正是我需要的,在ipad上面开发HTML5使用

wudiilong

试试

_送了流年丶
不错的控件  作者加油
小青柠一枚

很不错 ,好几个项目都用到了 ,谢谢

南城北忆

还不错

礼

手下了

当前页面为只读展示,仅显示已审核留言;提交留言功能暂未开放。