<style>
body { font-family:"Microsoft Yahei";}
.icon-bar{border: 1px solid #fff;}
.navbar{background: #0C8EE0; margin-bottom:0px;}
.navbar .navbar-brand,.navbar .navbar-brand:hover{color: #fff;}
.navbar-default .navbar-nav li a { color:#FFFFFF;font-size:16px;}
.navbar-default .navbar-nav li a:hover{ color:white;; background-color:orange;}


.daohang { font-family:"Microsoft Yahei"; margin-bottom:5px;}
.daohang a { font-size:16px;}


.kongzhi { font-size:25px; color:green;height:100px;}
.media-heading a { color: #0000FF; font-weight:bold; font-size:16px;}

.anlinav { background-color: #EBEBEB; height:30px;}
.anlinav a { line-height:30px; width:80px; margin-left:10px; float:left;}
.indexanli { margin-top:10px; margin-bottom:10px;}
.active2 { background-color:#0C8EE0;}
.ad { margin-bottom:5px;}
.ad img {max-width:100%;}
.xue a { color:blue;}
.top2 { text-align:center; margin-top:20px;}
.juzhong { text-align:center;}
</style>
<div class="container">

   <div class="row">
		 <div class="col-md-4" >
		  <a href="/"><img src="/images/logo.png" alt="天天链" /></a>
		  </div>
		  
		  <div class="col-md-4" >
		      <!---这里可以放广告位-->
		  </div>
		  
		 <div class="col-md-4 top2">
		 <?php 		
		 $user=$_COOKIE["user"];
		 if (isset($user)){
		  ?>
		   <a href="user.php"><button class="btn btn-primary">个人中心</button></a>
		   <a href="out.php"><button class="btn btn-default">退出</button></a>
		 <?php
		 }else{
		 ?>
		   <a href="reg.php"><button class="btn btn-primary">注册</button></a>
		   <a href="login.php"><button class="btn btn-success">登录</button></a>
		 <?php
		 }
		 ?>
		  
		   
		   
		 </div>
   </div>
   
</div>

<div class="row" style="margin:0px;">
	<nav class="navbar navbar-default" role="navigation">
		<div class="container-fluid">
		<!---抓开-->
		   <div class="container">
				<div class="navbar-header">
					<button type="button" class="navbar-toggle" data-toggle="collapse"
							data-target="#example-navbar-collapse">
						<span class="sr-only">切换导航</span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
					</button>
					<a class="navbar-brand" href="/">首页</a>
				</div>
				<div class="collapse navbar-collapse" id="example-navbar-collapse">
					<ul class="nav navbar-nav">		
								   
					   <li><a href="/showlist.php">站长新闻</a></li>
					   <li><a href="/link.php"><font color="yellow">交换大厅</font></a></li>
					   <li><a href="/sell.php"><font color="white">出售大厅</font></a></li>
					
									   

					</ul>
				</div>
		   </div>
		 <!---抓开-->
		</div>
	</nav>
		

</div>

