Let’s take a look at the renderings first:
Code:
<!DOCTYPE HTML><html><head> <meta charset="utf-8"> <title>Animated transition pop-up box</title> <link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"> <!--css style--> <style > body{margin:30px;padding:30px;} </style></head><body><button type="button">Click me</button><div id="mymodal"> <div> <div> <div> <button type="button" data-dismiss="modal"> <span aria-hidden="true">×</span><span>Close</span> </button> <h4>Popt-up title</h4> </div> <div> <p>Popt-up body content</p> </div> <div> <button type="button" data-dismiss="modal">Close</button> </div> </div><!-- /.modal-content --> </div><!-- /.modal-dialog --></div><!-- /.modal --><!-- Place it at the end of the document to make the page load faster --><!-- If you want to use the js plugin of Bootstrap, you must first call jQuery --><script src="http://libs.baidu.com/jquery/1.9.0/jquery.min.js"></script><!-- Including all js plugins for bootstrap or js plugins that can be used as needed --><script src="http://maxcdn.bootstrappcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> <script> $(function(){ $(".btn").click(function(){ $("#mymodal").modal("toggle"); }); });</script></body></html>If you still want to study in depth, you can click here to study and attach 3 exciting topics to you:
Bootstrap learning tutorial
Bootstrap practical tutorial
Bootstrap plug-in usage tutorial
The above is all the content of this article. I hope it will be helpful to everyone's learning and I hope everyone will support Wulin.com more.