BootStrap模态框怎么实现打开一个其他的网页

 我来答
百度网友f8fe0d8
2018-04-27
知道答主
回答量:1
采纳率:0%
帮助的人:856
展开全部
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>Title</title>
<link rel="stylesheet" href="css/bootstrap.min.css">
<style>
body{
padding: 30px;
}
.mybtn{
margin-left: 80%;
}
.mymp{
padding: 10px;
}
</style>
</head>
<body>
<!-- Small modal -->
<button type="button" class="btn btn-primary mybtn" data-toggle="modal" data-target=".bs-example-modal-sm">登陆</button>
<div class="container" style="margin-top: 40px">
<div class="row">
<div class="col-md-8 col-md-offset-4">
<div class="input-group">
<input type="text" class="form-control" placeholder="">
<span class="input-group-btn">
<button class="btn btn-primary" type="button">百度一下</button>
</span>
</div>
</div>
</div>
</div>
<div class="modal fade bs-example-modal-sm" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel">
<div class="modal-dialog modal-sm" role="document">
<div class="modal-content">
<h3 class="modal-title" id="myModelLabel">百度登陆界面</h3>
<p></p>
<div class="model-body">
<form action="#" class="form-horizontal " >
<div class="form-group ">
<div class="col-md-8 col-md-offset-2">
<input type="text" class="form-control" placeholder="手机/邮箱/用户名">
</div>
</div>
<div class="form-group ">
<div class="col-md-8 col-md-offset-2">
<input type="password" class="form-control" placeholder="密码">
</div>
</div>
<div class="form-group">
<div class="col-md-6 col-md-offset-3">
<input type="checkbox">记住密码
</div>
</div>
<div class="form-group">
<div class="col-md-6 col-md-offset-3">
<input type="checkbox" >下次自动登陆
</div>
</div>
<div class="form-group">
<div class="col-md-8 col-md-offset-2">
<input type="button" class="btn btn-danger form-control" value="登录">
</div>
</div>
<div class="form-group">
<div class="col-md-6 col-md-offset-3">
<p><a href="#">没有账号,注册</a></p>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<script src="js/jquery-1.12.4.js"></script>
<script src="js/bootstrap.js"></script>
</body>
</html>
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式