Implementation of common navigation bars

Source: Internet
Author: User

<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 "/>
<title> Untitled Document </title>
<style type= "Text/css" >
<!--
body{margin:0 auto;font-size:12px;font-family: "Microsoft Jas Black"; line-height:1.5;}
img{boder:0px;}
ul,ol,dl,dd,dt,h1,h2,h3,h4,h5,h6,form,p{margin:0px;padding:0px;}
Ul{list-style:none;}
A{text-decoration:none;color: #000000;}
A:hover{color: #FF0000;}
#nav {height:66px; Background:url (images/nav_bg.gif) 0 0 repeat-x; margin-bottom:8px;width:900px;margin:0 Auto;}
#nav_l {float:left; height:66px; width:5px; overflow:hidden; Background:url (images/nav_bg.gif) 0-66px no-repeat; margin-right:10px;}
#nav_r {float:right; height:66px; width:5px; overflow:hidden; Background:url (images/nav_bg.gif) -5px-66px no-repeat;}
. nav_main {height:36px; overflow:hidden;}
. Nav_main ul li {float:left; font-size:14px; font-weight:bold; margin:5px 5px 0 5px;}
. Nav_main ul Li a {float:left; display:block; height:26px; line-height:26px; color: #fff; padding-left:20px;}
. Nav_main ul Li a span {float:left; display:block; padding-right:20px;}
. Nav_main ul li a:hover {background:url (images/nav_bg.gif) 0-163px no-repeat; color: #fff;}
. nav_main ul li A:hover span {background:url (images/nav_bg.gif) right-163px no-repeat; cursor:pointer;}
. Nav_main ul Li a#nav_current {height:31px; line-height:31px; Background:url (images/nav_bg.gif) 0-132px No-repeat; colo R: #646464;}
. nav_main ul Li A#nav_current span {height:31px; Background:url (images/nav_bg.gif) right-132px no-repeat;}
. nav_son {height:30px;}
. Nav_son ul li {float:left; margin-top:4px;}
. Nav_son ul Li a {display:block; width:78px; height:22px; line-height:22px; text-align:center; color: #6e6e6e;}
. Nav_son ul li a:hover {background:url (images/nav_bg.gif) 0-198px no-repeat;}
-
</style>
<body>
<div id= "NAV" >
<div id= "nav_l" ></div>
<div id= "Nav_r" ></div>
<div class= "Nav_main" >
<ul>
<li><a href= "#" ><span> home </span></a></li>
<li><a href= "#" id= "nav_current" ><span> corporate news </span></a></li>
<li><a href= "#" ><span> Company Profile </span></a></li>
<li><a href= "#" ><span> Product showroom </span></a></li>
<li><a href= "#" ><span> Corporate history </span></a></li>
<li><a href= "#" ><span> join </span></a></li>
<li><a href= "#" ><span> online </span></a></li>
<li><a href= "#" ><span> Contact Us </span></a></li>
</ul>
</div>
<div class= "Nav_son" >
<ul>
<li><a href= "#" > Enterprise Dynamics </a></li>
<li><a href= "#" > Leadership Events </a></li>
<li><a href= "#" > Product information </a></li>
<li><a href= "#" > Announcement </a></li>
</ul>
</div>
</div>

<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
<meta http-equiv= "Content-type" Content= "text/html; charset=gb2312 "/>
<title> Untitled document </TITLE>
<style type=" Text/css ";
<!--

body,div,p,ul,li,dl,dt,dd,h1,a{margin:0; padding:0;}
Img{border:none;}
h1{font-size:100%;}
#header, #banner, #content, #footer {width:1000px; margin:0 auto;}
#header {Overflow:hidden;}
#logo {display:block; width:220px; height:54px; float:left; background: #991616;}
#logo Img{display:block;}
#nav {width:780px; height:54px; float:left; background: #393838; list-style:none;}
#nav Li{float:left;}
#nav Li A{display:block; width:86px; height:54px; line-height:54px; text-align:center; font-size:12px; color: #ccc; Text-decoration:none; Float:left;}
#nav Li A:hover{color: #fff;}
#nav Li navactive{background:url (images/navhoverbg.png) no-repeat; color: #fff;}

-
</style>

<body>
<div id= "Header" >
<a id= "logo" href= "http://www.w3cstudy.com" >

</a>
<ul id= "NAV" >
<li><a href= "http://www.w3cstudy.com" class= "navactive" > Home </a></li>
<li><a href= "http://www.w3cstudy.com/course.aspx" > Training courses </a></li>
<li><a href= "http://www.w3cstudy.com/students.aspx" > Excellent students </a></li>
<li><a href= "http://www.w3cstudy.com/faq.aspx" > Course questions </a></li>
<li><a href= "http://www.w3cstudy.com/career.aspx" > Career </a></li>
<li><a href= "http://www.w3cfuns.com/" > Student Community </a></li>
<li><a href= "http://blog.w3cstudy.com/" > Official blog </a></li>
<li><a href= "http://www.w3cstudy.com/address.aspx" > College address </a></li>
</ul>
</div>
</body>

Implementation of common navigation bars

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.