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>
            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>
  • 相关阅读:
    localStorage存储数组以及取数组方法
    jq选择CheckBox进行排序
    js定时函数,定时改变字体的大小
    JQuery Datatable用法
    WebSocket实战
    代码段
    黎活明给程序员的忠告 收藏
    雅砻江后勤项目经验总结
    Java泛型方法
    回忆,梦的开始
  • 原文地址:https://www.cnblogs.com/kukai/p/12322813.html
Copyright © 2011-2022 走看看