bootstrap的总结

第一页:美团上方实现

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My JSP 'index.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!-- 新 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet"
href="http://cdn.bootcss.com/bootstrap/3.3.4/css/bootstrap.min.css">
<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<script src="http://cdn.bootcss.com/jquery/1.11.2/jquery.min.js">
</script>
<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script
src="http://cdn.bootcss.com/bootstrap/3.3.4/js/bootstrap.min.js">
</script>
<link href="http://g.alicdn.com/sj/dpl/1.4.3/css/sui.min.css" rel="stylesheet">
  <script type="text/javascript" src="http://g.alicdn.com/sj/dpl/1.4.3/js/sui.min.js"></script>
</head>
<script type="text/javascript">
$(function() {
$("#xin").hover(function() {
$("#xin").removeClass("glyphicon-star-empty");
$("#xin").addClass("glyphicon-star");
}, function() {
$("#xin").removeClass("glyphicon-star");
$("#xin").addClass("glyphicon-star-empty");
});


});
</script>
<style type="text/css">
#drop1:hover{
border-left: 0.02px solid #999;
border-right: 0.02px solid #999;
}
.divide {
margin-left: 10px;
line-height: 28px;
border-left: 1px solid gray;
}
.dropdown-menu {
margin: 0;
}
li:hover .dropdown-menu {
display: block;
}
.dropdown a:HOVER {
text-decoration: none;
}
a:LINK{
color:#666;
}
a.success{
color:#f99a40;
}
body
{
font-family : 微软雅黑,宋体;
font-size: 12px;
color:#666;
}
.down{
border:0.03px solid #999; 
}
</style>
</head>


<body>
<div class="container" style="">
<div class="row">
<div class="col-md-6 ">
<ul class="list-unstyled list-inline">
<li>
<label>
<span class="glyphicon glyphicon-star-empty" id="xin"
style="cursor: pointer;"></span>收藏美团
</label>
</li>
<li class="success">
<a href="#" class="success" >登陆</a>
</li>
<li>
<a href="#">注册</a><span class="divide"></span>
</li>
<li class="dropdown">
<a href="#menu3" ><span class="glyphicon glyphicon-phone"></span>&nbsp美团手机</a>
<ul class="dropdown-menu" style="">
<li>
<a>免费下载美团手机</a>
<div></div>
</li>
<li  class="divider"></li>
<li class="active">
<a>免费下载美团手机</a>
</li>
</ul>
</li>
</ul>
</div>
</li>
</ul>
<div class="col-md-6">
<ul class="list-inline pull-right">
<li>我的订单</li>
<li id="drop1" class="dropdown"></span>
<a href="#" >我的美团<span id="down1"></span><span class="caret"></span> <span class="divide"></a>
<ul class="dropdown-menu pull-right" style="">
<li>
<a>免费下载美团手机</a>
</li>
<li  class="divider"></li>
<li class="active">
<a>免费下载美团手机</a>
</li>
</ul>
</li>
<li class="dropdown">
<a href="#menu3" >购物车0件<span class="caret"></span> <span class="divide"></span></a>
<ul class="dropdown-menu pull-right" style="">
<li>
<a>免费下载美团手机</a>
<div></div>
</li>
<li  class="divider"></li>
<li class="active">
<a>免费下载美团手机</a>
</li>
</ul>
</li>
<li>联系客服<span class="caret"></span><span class="divide"></span></li>
<li class="dropdown">
<a href="#" >&nbsp我是商家<span class="caret"></span><span class="divide"></span></a>
<ul class="dropdown-menu pull-right" style="">
<li>
<a>免费下载美团手机</a>
</li>
<li  class="divider"></li>
<li class="active">
<a>免费下载美团手机</a>
</li>
</ul>
</li>
<li>更多<span class="caret"></li>
</ul>
</div>
</div>
</div>
</div>
<div><hr style="margin-top: 2px;margin-bottom: 0px;"/></div>
<div class="container" style="margin-top: 0px;">
<img src="image/aaa.jpg" style="width: 100%;margin-top: 0px;margin-bottom: 10px;"/></div>
</div>
<!-- 这里是搜索蓝 -->
<div class="container">
<div class=row>
<div class="span2">
<span style="font-size: 40px;"><b><a>美团</a></b></span>

</div>
<div class="span10"></div>
<div class="span2"></div>
</div>

</div>
</body>
</html>

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值