zoukankan      html  css  js  c++  java
  • 【案例】相对定位实现波浪效果

    <!DOCTYPE html>

    <html lang="en">

    <head>

            <meta charset="UTF-8">

            <title>相对定位实现波浪效果</title>

            <style>

                     *{

                             margin:0;

                             padding:0;

                     }

                     li{

                             list-style: none;

                     }

                     a{

                             text-decoration: none;

                     }

                     ul{

                             200px;

                             height: 240=6px;

                             margin-top: 20px;

                             margin-left: 10px;

                             border: 1px solid skyblue;

                     }

                     ul>li{

                             100%;

                             height: 40px;

                             line-height: 40px;

                             text-align: center;

                             border-bottom: 1px dashed skyblue;

                             background: pink;

                     }

                     ul>li:hover{

                             background: yellow;

                             position: relative;

                             left: 2px;

                             top: 1px;

                     }

                     ul>li>a{

                             display: block;

                             color: #000;

                             font-size: 14px;

                             font-weight: 700;

                             font-family: '微软雅黑';

                     }

            </style>

    </head>

    <body>

            <ul>

                     <li><a href="">首页</a></li>

                     <li><a href="">博客</a></li>

                     <li><a href="">编程</a></li>

                     <li><a href="">UI设计</a></li>

                     <li><a href="">前端</a></li>

                     <li><a href="">大数据</a></li>

            </ul>

    </body>

    </html>

  • 相关阅读:
    JS命名空间的使用
    PHPexcel的用法
    python爬取百度贴吧帖子
    python自动抢票
    int 与 String 与 char 之间的互相转换
    数据库备份和恢复
    Mysql 基础
    Mysql错误:Every derived table must have its own alias
    frameset框架集
    文件的上传(TCP)
  • 原文地址:https://www.cnblogs.com/sherryStudy/p/relative_position.html
Copyright © 2011-2022 走看看