JSDM

HTML

 
1
  <head>
2
    <meta charset="utf-8">
3
    <title></title>
4
    <style>
5
      * {
6
        margin: 0;
7
        padding: 0;
8
        box-sizing: border-box;
9
      }
10
      /*1660及以上*/
11
      .box {
12
        background-color: #ccc;
13
        border-radius: 5px;
14
        width: 500px;
15
        height: 695px;
16
        right: 127px;
17
        position: absolute;
18
        transform: scale(calc(1920 / 1660)) translateY(-50%);
19
        transform-origin: left top;
20
        top:50%;
21
        /* 上下居中后  顶91  底114  偏移量 (114 - 91) / 2 */
22
        margin-top: -11.5px;
23
      }
24
      /*1440-1660*/
25
      @media screen and (max-width: 1661px) {
26
        .box {
27
          transform: scale(calc(1660 / 1440)) translateY(-50%);
28
        }
29
      }
30
      /*1366-1440*/
31
      @media screen and (max-width: 1441px) {
32
        .box {
33
          transform: scale(1) translateY(-50%);
34
        }
35
      }
36
      /*1367及以下*/
37
      @media screen and (max-width: 1367px) {
38
        .box {
39
          transform: scale(calc(1366 / 1440)) translateY(-50%);
40
        }
41
      }
42
    </style>
43
  </head>
44
  <body>
45
    <div class="box"></div>
46
  </body>

CSS

x
 
1
? ?
? ?
必须是有效的URL
+ 添加另一个资源

JS

xxxxxxxxxx
1
 
1
必须是有效的URL
+ 添加另一个资源
Close

文件管理 点击文件查看URL

图片

  1. 暂无文件

CSS

  1. 暂无文件

JavaScript

  1. 暂无文件

其他

  1. 暂无文件
拖动文件到上面的区域或者:
加载中 ..................