-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bootstrap #13
Comments
modalshttp://www.tutorialrepublic.com/twitter-bootstrap-tutorial/bootstrap-modals.php OptionsThere are certain options which may be passed to modal() Bootstrap method to customize the functionality of a modal window.
You may set these options either through the use of data attributes or JavaScript. For setting the modals options via data attributes, just append the option name to data-, like data-backdrop="static", data-keyboard="false" etc. <script type="text/javascript">
$(document).ready(function(){
$(".launch-modal").click(function(){
$("#myModal").modal({
backdrop: 'static'
});
});
});
</script> EventsBootstrap's modal class includes few events for hooking into modal functionality.
The following example displays an alert message to the user when fade out transition of the modal window has been fully completed. <script type="text/javascript">
$(document).ready(function(){
$("#myModal").on('hidden.bs.modal', function(){
alert("Modal window has been completely closed.");
});
});
</script>
|
glyphicon
http://getbootstrap.com/components/
表单
结构如下
form.form-horizontal > .form-group > label + input.form-control
其中form上的.form-horizontal是可选的(我觉得如果是手机就不用加。。)
The text was updated successfully, but these errors were encountered: