zoukankan      html  css  js  c++  java
  • 3D立体旋转

    <!DOCTYPE html>
    <html>
    <head>
        <title></title>
        <meta charset="utf-8">
        <style type="text/css">
            body{
                perspective: 1000px;
            }
            .one{
                position: relative;
                 200px;
                margin:150px auto;
                transform-style: preserve-3d;
                transform: rotateX(-45deg) rotateY(45deg);
                /*animation: ranwanqiang 3s infinite;*/
            }

            .one>div{
                position: absolute;
                 200px;
                height:200px;
                /*background:rgba(0,0,0,0.4);*/
                border:1px solid #999;
                /*opacity: 0.1px;*/
                color:white;
                font-size: 120px;
                text-align: center;
                line-height: 200px;
            }
            .front{
                transform:translateZ(100px);
            }
            .top {
                 transform: rotateX(90deg) translateZ(100px);
            }
            .right {
                transform: rotateY(90deg) translateZ(100px);
            }
            .left {            
                transform: rotateY(-90deg) translateZ(100px);
            }
            .bottom {            
                transform: rotateX(-90deg) translateZ(100px);
            }
            .back {            
                transform: rotateY(-180deg) translateZ(100px);
    }
    /*@keyframes ranwanqiang{
                to{transform: rotateX(90deg);}
            }*/
        </style>
    </head>
    <body>
    <div class="one">
          <div class="front">1</div>
          <div class="back">2</div>
          <div class="right">3</div>
          <div class="left">4</div>
          <div class="top">5</div>
          <div class="bottom">6</div>
    </div>
    </body>
    </html>

  • 相关阅读:
    c#中获取服务器IP,客户端IP以及Request.ServerVariables详细说明
    无废话MVC入门教程二[第一个小Demo]
    winform使用xml作为数据源
    SQL Server 2005为数据库设置用户名和密码的方法
    数据库 的版本为 661,无法打开。此服务器支持 655 版及更低版本。不支持降级路径。
    Visual Studio快速封装字段方法
    erp crm oa
    sqldbhelper
    OleDbHelper
    存储过程分页(3)
  • 原文地址:https://www.cnblogs.com/ran849340618/p/5663522.html
Copyright © 2011-2022 走看看