CSS implemented bilingual menu effect code in Chinese and English

Source: Internet
Author: User

This article illustrates the bilingual menu effect code implemented by CSS in Chinese and English. Share to everyone for your reference. as follows:

This is a you must like the CSS bilingual menu in English and Chinese, support mouse effects, first run to see the effect, will definitely be another you satisfied. Use a background image, please download it yourself.

The

code is as follows: <! 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>


<title> Practical Chinese and English CSS menus </title>


<style>


body{


margin:0;


padding:0;


font-size:12px;


}


*


{


margin:0;


padding:0;


Text-align:left;


color: #9196A0;


Font-family:verdana;


}


a{


color: #9196A0;


}


A:link {


Text-decoration:none


}


a:visited{


Text-decoration:none


}


a:hover{


Text-decoration:underline;


Color: #81BC06


}


#nav {


height:100%;


Overflow:hidden;


List-style:none;


margin:0 Auto;


width:798px


}


#nav li{


Float:left;


Font-weight:bold;


height:60px;


Background:url (images/navbg.png) #fff repeat-x left bottom;


padding:0


}


#nav a{


Text-align:center;


padding-top:20px;


Display:block;


height:40px;


line-height:40px;


}


#nav li a.one{width:80px;}


#nav li a.two{width:80px;}


#nav li a.three{width:80px;}


#nav li a.four{width:80px;}


#nav li a.five{width:100px;}


#nav li a.six{width:106px;}


#nav li a.seven{width:100px;}


#nav li a.eight{width:80px;}


#nav li a.nine{width:92px;}


#nav Li A:hover.one{background:url (images/navunbg.gif) no-repeat-8px 0}


#nav Li A:hover.two{background:url (images/navunbg.gif) no-repeat-8px-60px}


#nav Li A:hover.three{background:url (images/navunbg.gif) no-repeat-8px-120px}


#nav Li A:hover.four{background:url (images/navunbg.gif) no-repeat-8px-180px}


#nav Li A:hover.five{background:url (images/navunbg.gif) no-repeat 4px-240px}


#nav Li A:hover.six{background:url (images/navunbg.gif) no-repeat 8px-300px}


#nav Li A:hover.seven{background:url (images/navunbg.gif) no-repeat 4px-360px}


#nav Li A:hover.eight{background:url (images/navunbg.gif) no-repeat-8px-420px}


#nav Li A:hover.nine{background:url (images/navunbg.gif) no-repeat 0-480px}


</style>


</head>


<body>


<p> </p>


<ul id= "NAV" >


<li><a href= "#" class= "one" > website home </a></li>


<li><a href= "#" class= "two" > About us </a></li>


<li><a href= "#" class= "three" > Latest update </a></li>


<li><a href= "#" class= "four" > Update ranking </a></li>


<li><a href= "#" class= "five" > Construction Station Service flow </a></li>


<li><a href= "#" class= "six" > Customer case </a></li>


<li><a href= "#" class= "seven" > Website usage guide </a></li>


<li><a href= "#" class= "eight" > Web effects </a></li>


<li><a href= "#" class= "Nine" > Contact us </a></li>


</ul><!--nav end-->

I hope this article will help you with CSS web design.

Related Article

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.