zoukankan      html  css  js  c++  java
  • 2019.12.5-网站首页代码(浮动)

    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="utf-8">
    <title>布局实例</title>
    </head>
    <style type="text/css">
    .menu{
    list-style: none;
    background-color: #55a8ea;
    padding: 0;
    960px;
    height:40px;
    margin: 50px auto 0;
    position: relative; /* 相对定位 */
    }

    .menu li{
    float: left;
    100px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    }

    .menu li a{
    /* font-size: 14px;
    font-family: 'Microsoft Yahei';
    color: #fff; */
    font:14px/40px 'Microsoft Yahei';
    color: #fff;
    text-decoration: none;
    }

    .menu li:hover{
    background-color: #00619f;
    }

    .menu .active{
    background-color: #00619f;
    }

    .menu .new{
    58px;
    height: 35px;
    background: url(images/new.png) no-repeat;
    position: absolute;
    left: 422px;
    top: -18px;
    }

    .menu .new:hover{
    background: url(images/new.png) no-repeat;
    }

    </style>
    <body>

    <ul class="menu">
    <li class="active"><a href="">首 页</a></li>
    <li><a href="">网站建设</a></li>
    <li><a href="">网站建设</a></li>
    <li><a href="">网站建设</a></li>
    <li><a href="">网站建设</a></li>
    <li><a href="">网站建设</a></li>
    <li><a href="">网站建设</a></li>
    <li class="new"></li>
    </ul>

    </body>
    </html>

  • 相关阅读:
    复杂网络研究的委员老师信息总合
    numpy读取本地数据和索引
    numpy数组的计算
    numpy数组的创建
    python画图的工具及网站
    matplotlib直方图
    matplotlib.legend()函数用法
    matplotlib条形图
    matplotlib散点图
    matplotlib折线图
  • 原文地址:https://www.cnblogs.com/lishuide/p/11992854.html
Copyright © 2011-2022 走看看