发表于:2009/5/1 20:51:13
#0楼
效果:
代码如下:
会跳起的多彩菜单
ul{
height:26px;
margin:0;
padding:10px;
list-style-type:none;
background:#ddd;
}
.item{
float:left;
width:100px;
margin:0 -1px 0 0;
padding 0;
font: 14px arial;
font-weight:bold;
}
.item p{
padding:0 0 2px 0;
margin:0px;
text-align:center;
background:#cc6;
border:solid 1px #000;
border-top-width:0;
}
.item div{
height:1px;
overflow:hidden;
background:#cc6;
border-left:solid 1px #000;
border-right:solid 1px #000;
}
.item .pad{
height:10px;
border:0;
background:transparent; /*背景色透明*/
}
.item .row1{
margin:0 5px;
background:#000;
}
.item .row2{
margin:0 3px;
border:0 2px;
}
.item .row3{
margin:0 2px;
}
.item .row4{
margin:0 1px;
height:2px;
}
.item a , .item a:visted{
display:block;
color:#000;
text-decoration:none;
}
.item a:hover{
background:transparent;
}
.item a:hover p{
background:#884;
padding-bottom:12px;
}
.item a:hover .pad{
height:0px;
}
.item a:hover .row2,
.item a:hover .row3 ,
.item a:hover .row4{
background:#884;
}
.orange p,
.orange .row2,
.orange .row3,
.orange .row4,
{
background:#fa0;
}
.orange a:hover p,
.orange a:hover .row2,
.orange a:hover .row3,
.orange a:hover .row4,
{
background:#fa0;
}
.yellow p,
.yellow .row2,
.yellow .row3,
.yellow .row4,
{
background:#ff0;
}
.yellow a:hover p,
.yellow a:hover .row2,
.yellow a:hover .row3,
.yellow a:hover .row4,
{
background:#ff0;
}
.green p,
.green .row2,
.green .row3,
.green .row4,
{
background:#0e0;
}
.green a:hover p,
.green a:hover .row2,
.green a:hover .row3,
.green a:hover .row4,
{
background:#0e0;
}
.blue p,
.blue .row2,
.blue .row3,
.blue .row4,
{
background:#0cf;
}
.blue a:hover p,
.blue a:hover .row2,
.blue a:hover .row3,
.blue a:hover .row4,
{
background:#0cf;
}
home
contact us
web dev
map
----------------------------------------------
此篇文章从博客转发
原文地址: Http://blog.gkong.com/more.asp?id=86167&Name=gufeiyan
代码如下:
会跳起的多彩菜单
ul{
height:26px;
margin:0;
padding:10px;
list-style-type:none;
background:#ddd;
}
.item{
float:left;
width:100px;
margin:0 -1px 0 0;
padding 0;
font: 14px arial;
font-weight:bold;
}
.item p{
padding:0 0 2px 0;
margin:0px;
text-align:center;
background:#cc6;
border:solid 1px #000;
border-top-width:0;
}
.item div{
height:1px;
overflow:hidden;
background:#cc6;
border-left:solid 1px #000;
border-right:solid 1px #000;
}
.item .pad{
height:10px;
border:0;
background:transparent; /*背景色透明*/
}
.item .row1{
margin:0 5px;
background:#000;
}
.item .row2{
margin:0 3px;
border:0 2px;
}
.item .row3{
margin:0 2px;
}
.item .row4{
margin:0 1px;
height:2px;
}
.item a , .item a:visted{
display:block;
color:#000;
text-decoration:none;
}
.item a:hover{
background:transparent;
}
.item a:hover p{
background:#884;
padding-bottom:12px;
}
.item a:hover .pad{
height:0px;
}
.item a:hover .row2,
.item a:hover .row3 ,
.item a:hover .row4{
background:#884;
}
.orange p,
.orange .row2,
.orange .row3,
.orange .row4,
{
background:#fa0;
}
.orange a:hover p,
.orange a:hover .row2,
.orange a:hover .row3,
.orange a:hover .row4,
{
background:#fa0;
}
.yellow p,
.yellow .row2,
.yellow .row3,
.yellow .row4,
{
background:#ff0;
}
.yellow a:hover p,
.yellow a:hover .row2,
.yellow a:hover .row3,
.yellow a:hover .row4,
{
background:#ff0;
}
.green p,
.green .row2,
.green .row3,
.green .row4,
{
background:#0e0;
}
.green a:hover p,
.green a:hover .row2,
.green a:hover .row3,
.green a:hover .row4,
{
background:#0e0;
}
.blue p,
.blue .row2,
.blue .row3,
.blue .row4,
{
background:#0cf;
}
.blue a:hover p,
.blue a:hover .row2,
.blue a:hover .row3,
.blue a:hover .row4,
{
background:#0cf;
}
home
contact us
web dev
map
----------------------------------------------
此篇文章从博客转发
原文地址: Http://blog.gkong.com/more.asp?id=86167&Name=gufeiyan