css布局实现一个window 8 metro风格菜单

代码语言:html

所属分类:菜单导航

代码描述:css布局实现一个window 8 metro风格菜单

代码标签: 一个 window 8 metro 风格 菜单

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

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">

<style>
@import url(https://netdna.bootstrapcdn.com/font-awesome/2.0/css/font-awesome.css);
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,300);

* { -webkit-font-smoothing:antialiased; -moz-font-smoothing:antialiased; -ms-font-smoothing:antialiased; -o-font-smoothing:antialiased; font-smoothing:antialiased; }

body{
  margin:0px;
  padding:0px;
        font-family: "Open Sans", arial;
        background:#0f6d39;
        color:#fff;
        font-weight:300;
}

h1{
        font-family: "Open Sans", arial;
        font-weight:300;
        float: left;
        width: 55%;
        margin-left: 5px;
        font-size: 40px;
        margin-bottom: 40px;
}
h2{
        margin:0px;
        font-family: "Open Sans", arial;
        font-weight:300;
}
.container{
        margin:50px;
        width: 1251px;
        margin-top: -30px;
  margin-left:10px;
        -webkit-transform:scale(0.9);
}
a.wide, a.box{
        text-decoration:none;
        color:#fff;
        -webkit-transition: -webkit-transform 0.1s;
        position:relative;
        overflow:hidden;
}

a.wide h2, a.box h2{
        position:absolute;
        bottom:5px;
        font-size:14px;
}

a.wide h2.top, a.box h2.top{
        position:static;

        font-size:14px;
}
a.wide i, a.box i{
font-size: 60px;
text-align: center;
display: block;
margin-top: 10px; /* outside Codepen is actually 30px */
}
a.wide:hover, a.box:hover{
        -webkit-transform: scale(1.05);
}

a.wide:active, a.box:active{
        -webkit-transform: scale(1);
}
.wide{
        width:270px;
        height:120px;
        overflow:hidden;
        font-size:13px;
        padding:10px;
        display:block;
        float:left;
        margin:5px;
}

.box{
        width:120px;
        height:120px;
        overflow:hidden;
        font-size:13px;
        padding:10px;
        display:block;
        float:left;
        margin:5px;
}
.lime{background:#61b812;}
.orange{background:#e76022;}
.blue{background:#1E90FF;}
.redgay{background:#DA312E;}
.yellow{background:#dbb701;}
.bluefish{background:#02b9e3;}
.magenta{background:#d22a4e;}
.spacer{
        width:770px;
        margin-right: 50px;
        float:left;
}
.spacer3x{
        width:300px;
}

@-webkit-keyframes galeri
{
1% {background-pos.........完整代码请登录后点击上方下载按钮下载查看

网友评论0