从此没了自定义导航菜单

<!–导航菜单–><!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
<style>
a{ text-decoration:none  !important; }
li{ font-size:16px; !important; }
</style>
<title>导航固定</title>
<script type=”text/javascript”>try{if (!/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)) {
$(function(){
$(“.nav”).addClass(“fixedNav”);
  $(window).scroll(function() {
//$(“body”).css({“background-position”:”center “+$(window).scrollTop()+””});
if($(window).scrollTop()>=0){
$(“.nav”).addClass(“fixedNav”);
}else{
$(“.nav”).removeClass(“fixedNav”);
}
});
});
 }}catch(e){}</script>
<script src=”http://xbwcc.com.cn/blog/wp-content/uploads/2016/02/jquery.min_.js”language=”javascript” type=”text/javascript”></script>
<script>
</script>
<style>
*{
margin:0px;
padding:0px;
}
.item {
display: block;
text-align:center;
line-height: 69px;
height: 100%;
transition: all 0.5s;
-moz-transition: all 0.5s; /* Firefox 4 */
-webkit-transition: all 0.5s; /* Safari 和 Chrome */
-o-transition: all 0.5s;
cursor:pointer;
}
.item:hover {
background-color:rgb(36, 36, 36);
}
div.nav{
background-color:rgb(21, 22, 24);
height: 82px;

}

div.fixedNav{
position:fixed;
top:0px;
left:0px;
width:100%;
z-index:100000;
_position:absolute;
_top:expression(eval(document.documentElement.scrollTop));
}
</style>
</head>
<body>
<div class=”nav”>
<li><a class=”item” href=”http://xbwcc.com.cn” title=”symbol”><img src=”http://xbwcc.com.cn/blog/wp-content/uploads/2016/02/ssyymmbbooll-e1455539603617.png”></a></li>
<li><a class=”item” href=”http://xbwcc.com.cn”   title=”HomePage”>首 页</a></li>
<li><a class=”item” href=”http://blog.csdn.net/xbw12138″  target=”_blank” title=”blog”>博 客</a></li>
<li><a class=”item” href=”http://xbwcc.com.cn/forums/” target=”_blank”  title=”BBS”>论 坛</a></li>
<li><a class=”item” href=” http://xbwcc.com.cn/music/” target=”_blank”  title=”music”>音 乐</a></li>
<li><a class=”item” href=” http://xbwcc.com.cn/game/” target=”_blank”  title=”Game”>游 戏</a></li>
<li><a class=”item” href=” http://xbwcc.com.cn/talks/ ”  target=”_blank” title=”talk”>留 言 板</a></li>
<li><a class=”item” href=”http://download.csdn.net/user/xbw12138″ target=”_blank”  title=”resource”>下 载</a></li>
<li><a class=”item” href=”http://xbwcc.com.cn/blog/about_us.html” target=”_blank”  title=”about us”>关 于</a></li>
<li><a class=”item” data-type=”2″ biz-keyword=”服 务 器” data-tmpl=”300×250″ data-tmplid=”52″ data-rd=”2″ data-style=”1″ data-border=”1″ href=”#”>服 务 器</a></li>
</div>
</div>
<style type=”text/css”>
.nav li{float:left; list-style: none; background-color:rgb(21, 22, 24); width: 10%; height: 100%; border-color: transparent;}
@media only screen and (max-width: 400px) {
.nav li {
width: 100%;
height: 100%;
}
}
</style>
</body>
</html>