• 透视图的设置


    <!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>
            html{
                /* 设置当前网页的视距为800px, 人眼距离网页的距离*/
                perspective: 800px;
            }
            body{
                background-color: silver;
                border:1px solid red;
            }
            .box{
                 100px;
                height: 100px;
                background-color: springgreen;
                margin: 200px auto;
                /* 设置所有属性的过渡时间为1s */
                transition: all 1s;
            }
            body:hover .box{
                /* z轴的向上偏移500px */
                transform:translateZ(500px);
            }
        </style>
    </head>
    <body>
        <div class="box"></div>
    </body>
    </html>
  • 相关阅读:
    关于游戏分布式或者多服管理的想法
    surfaceView
    ackerman递归
    netbeans环境的建立
    copy-浅及深的复制操作
    使用VMware安装CentOS6.8详细教程
    Python在线资源优先级排序
    Python导入模块,Python import用法
    编码
    Python清屏命令
  • 原文地址:https://www.cnblogs.com/kukai/p/12322813.html
Copyright © 2020-2023  润新知