zoukankan      html  css  js  c++  java
  • 图片飞出效果

    <!DOCTYPE html>
    <html lang="en">
      <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Document</title>
        <style>
          * {
            margin: 0px;
            padding: 0px;
          }
          div {
             100px;
            height: 150px;
          }
          div.boll {
            border: 1px solid red;
             300px;
            height: 300px;
            background-color: silver;
            margin: 0 auto;
            padding-top: 20px;
          }
          .boll .box {
            background-color: white;
            /* 块元素的垂直布局变为水平布局 */
            float: left;
            /* 过渡时间为2秒 */
            transition: all .2s;
          }
          .boll .box1 {
            background-color: white;
            /* 块元素的垂直布局变为水平布局 */
            float: left;
            margin-left: 5px;
            transition: all .3s;
          }
          .box1:hover, .box:hover {
            transform: translateY(-3px);
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
          }
        </style>
      </head>
      <body>
        <div class="boll">
          <div class="box"></div>
          <div class="box1"></div>
        </div>
      </body>
    </html>
  • 相关阅读:
    发呆发呆发呆发呆发呆发呆发
    大众捷达看想吃 v 觉得分开才相聚离开都出现
    yjggj
    test4
    test3
    test2
    test1
    Java并发之线程池ThreadPoolExecutor源码分析学习
    Java并发之AQS同步器学习
    ThreadLocal和ThreadLocalMap源码分析
  • 原文地址:https://www.cnblogs.com/kukai/p/12322600.html
Copyright © 2011-2022 走看看