zoukankan      html  css  js  c++  java
  • css 样式小窍门

    css 样式小窍门 

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>页面分布</title>
        <style>
            body {
                margin: 0;  /*让整个页面的边距消失*/
            }
            .pg-head {
                height: 40px;
                background-color: dodgerblue;
                line-height: 30px;   /*调整这个标签里面中的文字水平的位置*/
            }
            .w{
                 760px;
                margin:  0 auto; /*居中*/
            }
            ul{
                margin: 0;
                list-style-type: none;
            }
            ul li {
                float: left;
                padding:0 20px 0 20px;
                cursor: pointer;
                margin-top: 4px;
                font-size: 5px;
            }
    
             ul li:hover{    /*伪类,当鼠标移动当该标签上时自动应用此效果*/
                 background-color: darkblue;
             }
    
        </style>
    </head>
    <body>
        <div class="pg-head">
            <div class="w">
                <ul>
                    <li>菜单一</li>
                    <li>菜单二</li>
                    <li>菜单三</li>
                </ul>
            </div>
        </div>
        <div class="pg-body"></div>
        <div class="pg-footer"></div>
    </body>
    </html>
  • 相关阅读:
    Pillar
    Minion配置文件
    Master配置文件
    Grains
    常见的散列函数
    数据结构散列表
    转载:数据结构 二项队列
    转载:数据结构 左式堆
    数据结构 d-堆
    二叉堆的简单介绍
  • 原文地址:https://www.cnblogs.com/python-way/p/6819094.html
Copyright © 2011-2022 走看看