手机
当前位置:查字典教程网 >编程开发 >Javascript教程 >Bootstrap实现带动画过渡的弹出框
Bootstrap实现带动画过渡的弹出框
摘要:先看看效果图:代码:带动画过的渡弹出框body{margin:30px;padding:30px;}点击我×Close弹出窗标题...

先看看效果图:

Bootstrap实现带动画过渡的弹出框1

代码:

<!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <title>带动画过的渡弹出框</title> <link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"> <> <style > body{margin:30px;padding:30px;} </style> </head> <body> <button type="button">点击我</button> <div id="mymodal"> <div> <div> <div> <button type="button" data-dismiss="modal"> <span aria-hidden="true">×</span><span>Close</span> </button> <h4>弹出窗标题</h4> </div> <div> <p>弹出窗主体内容</p> </div> <div> <button type="button" data-dismiss="modal">关闭</button> <button type="button">保存</button> </div> </div><> </div><> </div><> <> <> <script src="http://libs.baidu.com/jquery/1.9.0/jquery.min.js"></script> <> <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> <script> $(function(){ $(".btn").click(function(){ $("#mymodal").modal("toggle"); }); }); </script> </body> </html>

【Bootstrap实现带动画过渡的弹出框】相关文章:

Javascript实现飞动广告效果的方法

javascript实现删除前弹出确认框

jQuery实现延迟跳转的方法

CheckBox 如何实现全选?

探索angularjs+requirejs全面实现按需加载的套路

jquery实现图片左右切换的方法

如何实现浏览器上的右键菜单

js实现鼠标经过表格行变色的方法

js实现两点之间画线的方法

JS实现窗口加载时模拟鼠标移动的方法

精品推荐
分类导航