• css3背景色过渡


    <!DOCTYPE html>
    <html lang="zh-cmn-Hans">
    <head>
    <meta charset="utf-8" />
    <title>transition_CSS参考手册_web前端开发参考手册系列</title>
    <meta name="author" content="Joy Du(飘零雾雨), dooyoe@gmail.com, www.doyoe.com" />
    <style>
    h1{font-size:16px;}
    .test{overflow:hidden;100%;margin:0;padding:0;list-style:none;}
    .test li{float:left;100px;height:100px;margin:0 5px;border:1px solid #ddd;background-color:#eee;text-align:center;
    -webkit-transition:background-color .5s ease-in;
    -moz-transition:background-color .5s ease-in;
    transition:background-color .5s ease-in;
    }
    .test li:nth-child(1):hover{background-color:#bbb;}
    .test li:nth-child(2):hover{background-color:#999;}
    .test li:nth-child(3):hover{background-color:#630;}
    .test li:nth-child(4):hover{background-color:#090;}
    .test li:nth-child(5):hover{background-color:#f00;}
    </style>
    </head>
    <body>
    <h1>请将鼠标移动到下面的矩形上:</h1>
    <ul class="test">
    <li>背景色过渡</li>
    <li>背景色过渡</li>
    <li>背景色过渡</li>
    <li>背景色过渡</li>
    <li>背景色过渡</li>
    </ul>
    </body>
    </html>
    <!DOCTYPE html>
    <html lang="zh-cmn-Hans">
    <head>
    <meta charset="utf-8" />
    <title>transition_CSS参考手册_web前端开发参考手册系列</title>
    <meta name="author" content="Joy Du(飘零雾雨), dooyoe@gmail.com, www.doyoe.com" />
    <style>
    h1{font-size:16px;}
    .test{overflow:hidden;100%;margin:0;padding:0;list-style:none;}
    .test li{float:left;100px;height:100px;margin:0 5px;border:1px solid #ddd;background-color:#eee;text-align:center;
    -webkit-transition:background-color .5s ease-in;
    -moz-transition:background-color .5s ease-in;
    transition:background-color .5s ease-in;
    }
    .test li:nth-child(1):hover{background-color:#bbb;}
    .test li:nth-child(2):hover{background-color:#999;}
    .test li:nth-child(3):hover{background-color:#630;}
    .test li:nth-child(4):hover{background-color:#090;}
    .test li:nth-child(5):hover{background-color:#f00;}
    </style>
    </head>
    <body>
    <h1>请将鼠标移动到下面的矩形上:</h1>
    <ul class="test">
    <li>背景色过渡</li>
    <li>背景色过渡</li>
    <li>背景色过渡</li>
    <li>背景色过渡</li>
    <li>背景色过渡</li>
    </ul>
    </body>
    </html>

  • 相关阅读:
    IDEA debug时特慢 Method breakpoints may dramatically slow down debugging
    docker构建镜像
    ubuntu 挂载硬盘
    python 的 flask 、django 、tornado 、sanic
    scrapy实战之scrapyrt的使用
    scrapy框架集成http
    python3之Splash
    CentOS7安装PostgreSQL9.6(图文详细操作)
    替代Navicat的数据库操作工具DBeaver
    CentOS 7 安装 Graylog
  • 原文地址:https://www.cnblogs.com/luckyuns/p/6398773.html
Copyright © 2020-2023  润新知