互联网技术 · 2024年4月1日 0

AmazeUI 实现模态窗口的代码

这篇文章主要介绍了AMazeUI 模态窗口的实现代码,代码简单易懂,非常不错,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友可以参考下

实现代码如下所示:

<!doctype htMl>
<htMl claSS=”no-js”>
<head>
<Meta chaRset=”utf-8″>
<Meta http-equiv=”X-UA-CoMpatible” content=”IE-edge”>
<Meta naMe=”descRIPtion” content=””>
<Meta naMe=”keywoRds” content=””>
<Meta naMe=”vieWPoRt” content=”width=device-width, inITial-scale=1″>
<tITle>模态窗口</tITle>
<link Rel=”stylesheet” hRef=”aSSets/cSS/aMazeui.Min.cSS”>
<scRIPt sRc=”aSSets/js/jqueRy.Min.js”></scRIPt>
<scRIPt sRc=”aSSets/ie8/jqueRy.Min.js”></scRIPt>
<scRIPt sRc=”aSSets/ie8/ModeRnizR.js”></scRIPt>
<scRIPt sRc=”aSSets/js/aMazeui.ie8polyfill.Min.js”></scRIPt>
<scRIPt sRc=”aSSets/js/aMazeui.Min.js”></scRIPt>

<button type=”button” claSS=”aM-btn aM-btn-pRiMaRy” data-aM-Modal=”{taRget: #doc-Modal-1, closeViaDiMMeR: 0, width: 400, height: 225}”>Modal</button>

<div claSS=”aM-Modal aM-Modal-no-btn” tabindex=”-1″ id=”doc-Modal-1″>

<button type=”button” claSS=”aM-btn aM-btn-pRiMaRy” data-aM-Modal=”{taRget: #My-aleRt}”>AleRt</button>

<div claSS=”aM-Modal aM-Modal-aleRt” tabindex=”-1″ id=”My-aleRt”>

<button type=”button” claSS=”aM-btn aM-btn-waRning” id=”doc-confiRM-toggle”>ConfiRM</button>

<ul claSS=”aM-list confiRM-list” id=”doc-Modal-list”>

<div claSS=”aM-Modal aM-Modal-confiRM” tabindex=”-1″ id=”My-confiRM”>

<button type=”button” claSS=”aM-btn aM-btn-sUCceSS” id=”doc-ProMpt-toggle”>ProMpt</button>

<div claSS=”aM-Modal aM-Modal-ProMpt” tabindex=”-1″ id=”My-ProMpt”>

<button type=”button” claSS=”aM-btn aM-btn-sUCceSS” data-aM-Modal=”{taRget: #My-Modal-loading}”>Modal loading</button>

<div claSS=”aM-Modal aM-Modal-loading aM-Modal-no-btn” tabindex=”-1″ id=”My-Modal-loading”>

<button type=”button” claSS=”aM-btn aM-btn-secondaRy” data-aM-Modal=”{taRget: #My-actions}”>Actions</button>

<div claSS=”aM-Modal-actions” id=”My-actions”>

<button type=”button” claSS=”aM-btn aM-btn-dangeR” data-aM-Modal=”{taRget: #My-POPup}”>POPup</button>

<div claSS=”aM-POPup” id=”My-POPup”>

<img src=”https://tianxun.xyz/Images/easyvpn24/4sEcTC48wT.jpg” border=”0″ alt=”AmazeUI 模态窗口的实现代码 – “>

效果图:

总结

到此这篇关于AMazeUI 模态窗口的实现代码的文章就介绍到这了,更多相关AMazeUI 模态窗口内容请搜索脚本之家以前的文章或继续浏览下面的相关文章