码迷,mamicode.com
首页 > Web开发 > 详细

CSS模拟的五颜六色的按钮组成的导航菜单

时间:2015-04-02 11:37:59      阅读:151      评论:0      收藏:0      [点我收藏+]

标签:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>CSS模拟的五颜六色的按钮组成的导航菜单丨石家庄无卤电线石家庄花卉公司</title>
    <style>
    * {
    margin:0;
    padding:0;
    }
    #wrapper {
    margin:0 auto;
    text-align:left;
    }
    .container {
    padding: 0 0 36px;
    }
    .columns {
    display: block;
    clear:both;
    overflow:hidden;
    margin:0;
    padding:10px 20px;
    }
    a, a:visited {
    color:#333;
    text-decoration:none
    }
    #header {
    background: #000;
    height: 68px;
    border: 1px solid #eee;
    margin: 0;
    }
    #header h1 {
    float: left;
    text-indent:18px;
    color:#eee;
    margin-top:10px;
    }
    #header h3 {
    clear:both;
    text-align:right
    }
    #header h3 a {
    margin-right:10em;
    color:#CCC;
    font-weight: normal;
    }
    .page-header {
    padding: 0 0 8px;
    margin: 18px 0;
    border-bottom: 1px solid #ddd;
    }
    .page-header h2 {
    padding: 0;
    margin: 0;
    font-size: 24px;
    line-height: 27px;
    letter-spacing: 0; text-indent:2em;
    }
    .btn, .btn:visited {
    display: inline-block;
    padding: 4px 10px;
    font:bold 12px/180% Tahoma;
    color: #fff;
    text-decoration: none;
    overflow:hidden;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    text-shadow: 0 -1px 1px rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(0, 0, 0, 0.25);
    cursor: pointer;
    }
    .btn:hover {
    background-color: #111;
    }
    .btn:active {
    top: 1px;
    }
    .green.btn, .green.btn:visited {
    background-color: #91bd09;
    }
    .green:hover {
    background-color: #749a02;
    }
    .blue, .blue:visited {
    background-color: #2daebf;
    }
    .blue:hover {
    background-color: #007d9a;
    }
    .red, .red:visited {
    background-color: #e33100;
    }
    .red:hover {
    background-color: #872300;
    }
    .magenta, .magenta:visited {
    background-color: #a9014b;
    }
    .magenta:hover {
    background-color: #630030;
    }
    .orange, .orange:visited {
    background-color: #ff5c00;
    }
    .orange:hover {
    background-color: #d45500;
    }
    .yellow, .yellow:visited {
    background-color: #ffb515;
    }
    .yellow:hover {
    background-color: #fc9200;
    }
    </style>
    </head>
    <body>
    <div id="wrapper">
    <div class=" container">
    <div class="columns" style="background: #333; padding:30px 20px"> <a class="btn" href="http://www.sjzwoer.com/">CsrCode.Cn</a> <a class="blue btn" href="www.sifanghuahui.com">网页.特效</a> <a class="magenta btn" href="http://www.33567.cn/">珊珊.影视</a> <a class="red btn" href="#">免费.空间</a> <a class="orange btn" href="#">透明Flash</a> <a class="yellow btn" href="#">七彩.影视</a> <a class="btn blue" href="#">链接.交换</a></div>
    <br class="clear"/>
    </div>
    </div>
    </body>
    </html>
    <hr>

    

 

CSS模拟的五颜六色的按钮组成的导航菜单

标签:

原文地址:http://www.cnblogs.com/youtianxia/p/4386400.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!