CSS imitation Taobao home navigation bar Layout Effect _ Experience Exchange

Source: Internet
Author: User
The following is part of the CSS content: <style>/* Mouse/body{font-size:12px; text-align:center; margin-top:30px; Font-family:verdana;} div,img{margin:0; padding:0; border:0;} Ul,li{list-style-type:none; margin:0; padding:0; float:left;} #info {margin-left:auto; margin-right:auto;width:760px; text-align:left;} #new {margin-top:-12px;position:absolute;margin-left:-12px;} #nav {height:30px; width:610px; margin-left:auto; margin-right:auto;} #nav li{margin-left:1px; height:30px;} #nav Li a{display:block;float:left; text-decoration:none; Background-image:url (uploadfiles0/r200652134132.gif); Background-repeat:no-repeat; Display:block; Background-position:left top;} #nav a span{cursor:hand; color: #000; Background-image:url (uploadfiles0/v200652134115.gif); Background-repeat: No-repeat; Display:block;background-position:right top; padding:7px 10px 6px 10px; Float:left; #nav Li A:active, #nav li a:hover {margin-top:0px;} #nav Li A:active span, #nav li a:hover span {padding:10px 10px 6PX 10px; margin-top:0px; Display:block; Color: #FFF;} #zishu01 A:link, #zishu01 a:visited {background-position:0px-27px;} #zishu01 a:link span, #zishu01 a:visited span{background-position:right-27px;padding:10px 10px 6px 10px; margin-top:0; Color: #FFF; Font-weight:bold;} #zishu02 A, #zishu03 A, #zishu04 A, #zishu05 A, #zishu06 A, #zishu07 A, #zishu08 A, and #zishu09 A, #zishu10 A, #zishu11 the A{margin-top : 3px;} #zishu02 a:active, #zishu02 a:hover {background-position:0px-57px;} #zishu02 a:active span, #zishu02 a:hover span{background-position:right-57px;} #zishu03 a:active, #zishu03 a:hover {background-position:0px-87px;} #zishu03 a:active span, #zishu03 a:hover span{background-position:right-87px;} #zishu04 a:active, #zishu04 a:hover {background-position:0px-117px;} #zishu04 a:active span, #zishu04 a:hover span{background-position:right-117px;} #zishu05 a:active, #zishu05 a:hover {background-position:0px-147px;} #zishu05 a:active span, #zishu05 a:hover span{background-positION:RIGHT-147PX;} #zishu06 a:active, #zishu06 a:hover {background-position:0px-177px;} #zishu06 a:active span, #zishu06 a:hover span{background-position:right-177px;} #zishu07 a:active, #zishu07 a:hover {background-position:0px-207px;} #zishu07 a:active span, #zishu07 a:hover span{background-position:right-207px;} #zishu08 a:active, #zishu08 a:hover {background-position:0px-237px;} #zishu08 a:active span, #zishu08 a:hover span{background-position:right-237px;} #zishu09 a:active, #zishu09 a:hover {background-position:0px-267px;} #zishu09 a:active span, #zishu09 a:hover span{background-position:right-267px;} #zishu10 a:active, #zishu10 a:hover {background-position:0px-297px;} #zishu10 a:active span, #zishu10 a:hover span{background-position:right-297px;} #zishu11 a:link span, #zishu11 a:visited span{color: #FF6600;} #zishu11 a:active, #zishu11 a:hover {background-position:0px-327px;} #zishu11 a:active span, #zishu11 a:hover span{background-position:right-327PX;} #menu {width:760px height:26px; background: #FF9900;} #r1 {border-top:0px;border-bottom:0px; border-left:3px solid #fff; border-right:3px solid #fff; height:1px; overflow: Hidden;} #r2 {border-top:0px;border-bottom:0px; border-left:2px solid #fff; border-right:2px solid #fff; height:1px; overflow: Hidden;} #r3 {border-top:0px;border-bottom:0px; border-left:1px solid #fff; border-right:1px solid #fff; height:1px; Overflow:hidden;} </style> below is a quote fragment: <div id= "Info" > <div id= "nav" > <ul> <li id= " Zishu01 "><span> home </span></li> <li id=" zishu02 "><span> Digital communications </span></ li> <li id= "zishu03" ><span> women </span></li> <li id= "zishu04" &GT;&L T;span> men </span></li> <li id= "zishu05" ><span> home </span></li> <li id= "zishu06" ><span> books and audio </span></li> <li id= "zishu07" ><span> movement </span></li> <li id= "zishu08" >& Lt;span> Games </span></li> <li id= "zishu09" ><span> Pets </span></li> <li id= "Zishu10" ><span> Hong Kong street </span></li> <li id= "Zishu11" ><span> Taobao Mall </span></li> <li><div id= "new" ></div></li> </ul> & Lt;/div> <div id= "menu" > <div id= "R1" ></div> <div id= "R2" ></di v> <div id= "R3" ></div> <div></div> </div> </div> < P> Imitation Taobao home navigation bar effect reproduced please indicate the source mouse www.zishu.cn 2006-05-21 03:05 </p>
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]
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.