zoukankan      html  css  js  c++  java
  • 2d 转换中心点

    <!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>
            div {
                 200px;
                height: 200px;
                background-color: pink;
                margin: 100px auto;
                transition: all 1s;
                /* 1  可以跟方位名词 */
                /* transform-origin: left bottom; */
                /* 2 默认的是 50% 50% 等价于 center center  */
                /* 3 可以是 px 像素 */
                transform-origin: 50px 50px;
            }
            
            div:hover {
                transform: rotate(360deg);
            }
        </style>
    </head>

    <body>
        <div></div>
    </body>

    </html>
  • 相关阅读:
    java 排序
    spring 收藏博文
    转载:一位软件工程师的6年总结
    网站
    jdk配置环境变量的方法
    推荐桌游
    js 猜数字游戏
    html简易计算器的前端代码
    (转载)float与double中的精度问题
    jiaxiang
  • 原文地址:https://www.cnblogs.com/ericblog1992/p/12933615.html
Copyright © 2011-2022 走看看