html

<html>
<body>
<style type="text/css">
* {
    margin: 0;
    /* padding: 0; */
}
#blogTitle {
    height: 50px;
    background: #fff;
    clear: both;
}
 ul li a:hover {
 	background-color: #2A4952; /* 背景色 */
    /*color: #465c71;*/ /* 文字颜色 */
}

#blogTitle h2 {
    margin-left: 3.5em;
    margin-height: 0.6em;
    line-height: 1.8em;
    font-size: 1.3em;
    width: 50%;
    float: left;
}
	/* ul li以横排显示 */
#navigator {
    background-color: #337ab7;
    height: 50px;
    line-height: 50px;
    overflow: hidden;
    clear: both;
}
#navList {
    min-height: 30px;
    margin-left:1em;
    float: left;
}
#navList li {
    float: left;
    list-style-type:none;
}
#navList a {
    display: block;
    padding: 0 1.5em;
    height: 60px;
    font-family: '微软雅黑';
    float: left;
    font-size: 1.05em;
    text-align: center;
    transition-duration: 0.3s;
}
a:link, #navList a:visited, #navList a:active {
    color: #bbb;
}
a:link {
    text-decoration: none;
}
</style>
<div id="header">
<div id="blogTitle">
    <h2>java项目研究</h2>
</div>
<div id="navigator">
    <ul id="navList">
        <li><a id="blog_nav_sitehome" class="menu" href="http://www.cnblogs.com/">博客园</a></li>
        <li><a id="blog_nav_myhome"   class="menu" href="http://www.cnblogs.com/V1haoge/">首页</a></li>
        <li><a id="blog_nav_newpost" class="menu" rel="nofollow" href="https://i.cnblogs.com/EditPosts.aspx?opt=1">新随笔</a></li>
        <li><a id="blog_nav_contact" class="menu" rel="nofollow" href="https://msg.cnblogs.com/send/ToCodeHeart">联系</a></li>
    </ul>
    <!--end: blogStats -->
</div>
</div>

<script type="text/javascript">

</script>

</body>
</html>

 

posted @ 2017-05-19 17:31  cnchengv  阅读(170)  评论(0)    收藏  举报