css实现立体三维按钮导航条效果代码

代码语言:html

所属分类:菜单导航

代码描述:css实现立体三维按钮导航条效果代码

代码标签: 三维 按钮 导航 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html >
<head>
	<meta charset="UTF-8">
<style>
    body {background: -webkit-linear-gradient(top, #F68344 0.00%, #98370F 60.00%);background: linear-gradient(top, #F68344 0.00%, #98370F 60.00%);
background-size: 2500px 1600px;
background-repeat: no-repeat;
font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;   
font-weight: 300;
-webkit-font-smoothing: subpixel-antialiased;

font-size: 100%;
font-family: Helvetica;
}
#warp{background: -webkit-linear-gradient(top, #F68344 0.00%, #98370F 60.00%);background: linear-gradient(top, #F68344 0.00%, #98370F 60.00%);
background-size: 2500px 1600px;
background-repeat: no-repeat;
position: relative;
width: 800px;
height: 200px;
margin: 100px  auto 0px;
padding:5px;
display: block;
text-align:center;
border-radius:10px ;
}
#menu{
border-bottom: 1px solid #DDD;
position: relative;
background: -webkit-linear-gradient(top, #F8F8F8 0.00%, #EFEFEF 32.86%, #D7D7D7 68.93%, #CFCFCF 100.00%);
background: linear-gradient(top, #F8F8F8 0.00%, #EFEFEF 32.86%, #D7D7D7 68.93%, #CFCFCF 100.00%);
height: 50px;
width: 700px;
margin: auto;
list-style: none;
border-radius:0 15px 0 0;
box-shadow:0 2px 1px 0 #BEBEBE, 0 4px 1px -1px #B8B8B8, 0 6px 1px -2px #B3B3B3, 0 8px 1px -3px #ADADAD, 0 10px 1px -4px #AAAAAA, 0 12px 1px -5px #A7A7A7, 0 14px 1px -6px #9C9C9C, 0 16px 1px -7px #939393, 0 18px 1px -8px #8B8B8B, 0 20px 1px -9px #666666, 0 6px 1px rgba(0, 0, 0, 0.1), 0 0 5px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.3), 0 20px 4px -6px rgba(0, 0, 0, 0.9), 0 45px 5px -5px rgba(0, 0, 0, 0.05), 0 35px 10px -5px rgba(0, 0, 0, 0.1), 0 25px 55px 5px rgba(0, 0, 0, 0.15);
z-index:0;
margin:100px auto;
}
#menu:before{content: "";}
#menu:after{content: "";}
#menu li{
background:transparent;
padding: 0px;
width: 80px;
height: 62px;
margin: 0px;
overflow: hidden;
line-height: 50px!important;
-webkit-transition:all .5s ease-out;
transition: all .5s ease-out;
}

/* hover statut */
#menu li:hover,
#menu li.active{

background: -webkit-linear-gradient(top, #F58246 0.00%, #ED7F44 32.86%, #CC7244 68.93%, #BE6E48 100.00%);

background: linear-gradient(top, #F58246 0.00%, #ED7F44 32.86%, #CC7244 68.93%, #BE6E48 100.00%);
z-index: 2;
width: 80px;
top: -8px;
border-radius:10px 10px 0 0;
border-top: 1px solid #f7a273;
border-left: none;
border-right: none;
text-align: center;
box-shadow:0 2px 1px 0 #963004, 0 4px 1px -1px #852A03, 0 6px 1px -2px #812802, 0 8px 1px -3px #7D2803, 0 10px 1px -4px #661F01, 0 12px 1px -5px #521A02, 0 14px 1px -6px #401601, 0 16px 1px -7px #3C1501, 0 18px .........完整代码请登录后点击上方下载按钮下载查看

网友评论0