你们能帮帮我吗?我正在使用boostrap ..我在对话框提示中制作登录表单,但它不起作用..
这是链接
<a href="#login" data-toggle="modal">LOGIN</a>
这是对话提示的编码
<div class="modal fade" id="login" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<form method="post" class="form-horizontal" role="form">
<div class="modal-header">
<h4>Login</h4>
<div>
<div class="modal-body">
<div class="form-group">
<label for="username" class="col-sm-2 control-label">Name</label>
<div class="col-sm-10">
<input type="text" class="form-control" name="username" id="username" placeholder="User Name">
</div>
</div>
<div class="form-group">
<label for="password" class="col-sm-2 control-label">Password</label>
<div class="col-sm-10">
<input type="password" class="form-control" name="password" id="password" placeholder="     " style="font-family:Arial, FontAwesome">
</div>
</div>
</div>
<div class="modal-footer">
<a class="btn btn-default" data-dismiss="modal"> CLOSE </a>
<button type="submit" class="btn btn-primary" name="login"> LOGIN </button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
当我单击登录链接时,它只会刷新页面,链接将从 localhost/signup.php 更改为 localhost/signup.php#login
请帮我。