基于CSS的导航
Posted by admin on November 18, 2007 in 朝花夕拾 Views:565 views
译者:Sylvia_Queen

预览:
http://www.nundroo.com/navigation/
代码:
<style media=”all” type=”text/css”>
<!–
body {
margin: 26px;
padding: 0;
background: #fff url(back.png) no-repeat;
}
span {
display: none;
}
ul {
position: relative;
width: 800px;
background: url(bg_nav.png) no-repeat;
height: 113px;
list-style-type: none;
margin: 0;
padding: 0;
}
li#bu1 a, li#bu2 a, li#bu3 a, li#bu4 a {
background: transparent;
position: absolute;
width: 110px;
height: 32px;
bottom: 0;
text-decoration: none;
}
/* adjusted values for IE6 */
* html*li#bu1 a, * html*li#bu2 a, * html*li#bu3 a, * html*li#bu4 a
{ bottom: -1px; }
li#bu1 a { left: 21px; }
li#bu2 a { left: 122px; background: url(business_hover.gif) 0 0 no
-repeat; }
li#bu3 a { left: 223px; background: url(personal_hover.gif) 0 0 no
-repeat; }
li#bu4 a { left: 324px; background: url(information_hover.gif) 0 0
no-repeat; }
li#bu2 a:hover, li#bu3 a:hover, li#bu4 a:hover { background-
position: 0 -32px; }
–>
</style>
Last 5 posts in 朝花夕拾
- 人间天堂-美得让人窒息的小村庄(转载) - October 23rd, 2008
- mysqldump数据库操作命令 - June 30th, 2008
- 经典猴故事 - June 13th, 2008
- 160亿像素的图片!——达芬奇的《最后的晚餐》 - January 2nd, 2008
- 订阅新闻 - November 19th, 2007
Comment
Log in or Register to post a comment.