第一页:美团上方实现
<%@ 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> 美团手机</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="#" > 我是商家<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>
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------