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>

  • 相关阅读:
    第四章 springboot + swagger
    第三章 springboot + jedisCluster
    第二章 第二个spring-boot程序
    mac下的一些命令
    Redis(二十一):Redis性能问题排查解决手册(转)
    TreeMap升序|降序排列和按照value进行排序
    关于java集合类TreeMap的理解(转)
    Redis(二十):Redis数据过期和淘汰策略详解(转)
    Redis(十九):Redis压力测试工具benchmark
    try、finally代码块有无return时的执行顺序
  • 原文地址:https://www.cnblogs.com/sherryStudy/p/relative_position.html
Copyright © 2011-2022 走看看