国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 網站 > WEB開發 > 正文

基于jquery的響應式提示框SweetAlert

2024-04-27 15:00:36
字體:
來源:轉載
供稿:網友

介紹款交互性非常不錯的jquery彈出層插件,支持消息提示、錯誤提示、確認框提示等。交互式體驗感非常不錯,比如咱們現在體驗非常不錯的微信支付、支付寶等完成后的效果。不過本插件至少支持IE9+。使用方式也特別簡單、粗暴,符合大眾的jquery插件使用方法。

在線預覽    源碼下載

<h1>Sweet Alert</h1><h2>A beautiful replacement for javaScr</h2><button class="download">Download</button><h3>So... What does it do?</h3><p>Here’s a comparison of a standard error message. The first one uses the built-in <strong>alert</strong>-function, while the second is using <strong>sweetAlert</strong>.</p><div class="showcase normal"><h4>Normal alert</h4><button>Show error message</button><h5>Code:</h5><PRe><span class="attr">alert</span>(<span class="str">"Oops... Something went wrong!"</span>);    </pre><div class="vs-icon"></div></div><div class="showcase sweet"><h4>Sweet Alert</h4><button>Show error message</button><h5>Code:</h5><pre><span class="attr">sweetAlert</span>(<span class="str">"Oops..."</span>, <span class="str">"Something went wrong!"</span>, <span class="str">"error"</span>);</pre></div><p>Pretty cool huh? SweetAlert automatically centers itself on the page and looks great no matter if you're using a desktop computer, mobile or tablet. It's even highly customizeable, as you can see below!</p><h3>More examples</h3><p class="center">In these examples, we're using the shorthand function <strong>swal</strong> to call sweetAlert.</p><ul class="examples"><li class="message"><div class="ui"><p>A basic message</p><button>Try me!</button></div><pre><span class="attr">swal</span>(<span class="str">"Here's a message!"</span>)</pre></li><li class="title-text"><div class="ui"><p>A title with a text under</p><button>Try me!</button></div><pre><span class="attr">swal</span>(<span class="str">"Here's a message!"</span>, <span class="str">"It's pretty, isn't it?"</span>)</pre></li><li class="success"><div class="ui"><p>A success message!</p><button>Try me!</button></div><pre><span class="attr">swal</span>(<span class="str">"Good job!"</span>, <span class="str">"You clicked the button!"</span>, <span class="str">"success"</span>)</pre></li><li class="warning confirm"><div class="ui"><p>A warning message, with a function attached to the "Confirm"-button...</p><button>Try me!</button></div>

 


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 抚州市| 拉孜县| 安远县| 温宿县| 柘荣县| 柏乡县| 高要市| 讷河市| 河池市| 隆化县| 长阳| 临海市| 长宁县| 普兰县| 大荔县| 通州市| 怀安县| 商洛市| 资源县| 焦作市| 时尚| 怀化市| 大庆市| 通州市| 舒城县| 镇康县| 武安市| 贺州市| 桃园县| 江都市| 桦南县| 遂昌县| 南溪县| 合山市| 滕州市| 永新县| 南岸区| 扶风县| 凉城县| 内黄县| 驻马店市|