The following code is not a mask of Bootstrap, but a simple version of the mask effect. Bootstrap is too long-winded. If you love that mask from Bootstrap, check out this article "Full Edition:Bootstrap pop-up layer mask”。
<div class="theme-popover"> <div class="theme-poptit"> <a href="javascript:void(0);" title="closure" class="close">×</a> <h3>Log in It's an attitude</h3> </div> <div class="theme-popbod dform"> <form class="theme-signin" name="loginform" action="" method="post"> <ol> <li><h4>你必须先Log in!</h4></li> <li><strong>username:</strong><input class="ipt" type="text" name="log" value="lanrenzhijia" size="20" /></li> <li><strong>password:</strong><input class="ipt" type="password" name="pwd" value="***" size="20" /></li> <li><input class="btn btn-primary" type="submit" name="submit" value=" Log in " /></li> </ol> </form> </div> </div> <div class="theme-popover-mask"></div>
via importantCSS, the content style inside can be modified according to your own needs: The original text comes from:https:///article/
//code from / .theme-popover-mask { z-index: 9998; position:fixed; top:0; left:0; width:100%; height:100%; background:#000; opacity:0.4; filter:alpha(opacity=40); display:none } .theme-popover { z-index:9999; position:fixed; top:50%; left:50%; width:660px; height:360px; margin:-180px 0 0 -330px; border-radius:5px; border:solid 2px #666; background-color:#fff; display:none; box-shadow: 0 0 10px #666; }
jQuery code, click to appear, click the upper right corner to close
jQuery(document).ready(function($) { $('.theme-login').click(function(){ $('.theme-popover-mask').fadeIn(100); $('.theme-popover').slideDown(200); }) $('.theme-poptit .close').click(function(){ $('.theme-popover-mask').fadeOut(100); $('.theme-popover').slideUp(200); }) })
The above is the Bootstrap Modal mask pop-up layer code introduced to you by the editor. I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply to you in time. Thank you very much for your support for my website!