一只冰墩墩和雪容融edit icon

创建者:
用户eo7M6pZ1
Fork(复制)
下载
嵌入
BUG反馈
index.html
index.html
            
            <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" type="text/css" href="./css/kt.css" />
</head>
<style>
.{
box-sizing: border-box;
margin: 0;
}
 
body {
    padding-top: 100px;
}
 
.wrapper {
    width: 477px;
    height: 714px;
    position: relative;
    padding-top: 90px;
    float: left;
    margin-top: 3%;
}
 
.head {
    width: 477px;
    height: 360px;
    background-color: #D9453B;
    border-radius: 200px;
    transform: rotate(8deg);
    position: relative;
    overflow: hidden;
    box-shadow: -94px -34px 34px -82px rgba(255, 255, 255, .8) inset;
    position: relative;
    z-index: 8;
}
 
.head .line {
    width: 300px;
    height: 345px;
    border: 2px solid rgba(221, 188, 28, .3);
    border-radius: 0 300px;
    transform: rotate(42deg);
    position: absolute;
    left: 89px;
    top: 0;
    z-index: 1;
}
 
.head::before {
    content: '';
    display: block;
    width: 404px;
    height: 122px;
    position: absolute;
    top: 17px;
    left: 43px;
    z-index: 5;
    border-radius: 50%;
    box-shadow: 0px -29px 0px 0px #D9453B, 0px 1px 0px 0px rgba(159, 32, 36, .5) inset;
    transform: rotate(2deg);
}
 
.ring {
    position: absolute;
    top: 22px;
    left: 255px;
    z-index: 3;
    transform: rotate(15deg);
}
 
.ring::before {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    position: absolute;
    left: 43px;
    top: 18px;
    z-index: 3;
    transform: rotate(162deg);
    border-radius: 50% 50% 73px 29px;
    box-shadow: 1px 4px 0 0 rgba(237, 186, 0, .9);
}
 
.ring::after {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    position: absolute;
    left: 16px;
    top: 22px;
    z-index: 3;
    transform: rotate(28deg);
    border-radius: 30px 35px 50% 50%;
    box-shadow: 1px -4px 0 0 rgba(237, 186, 0, .9);
}
 
.ring-c {
    background-color: #fff;
}
 
.ring-w {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 10px 50%;
}
 
.ring-w1 {
    width: 40px;
    height: 45px;
    border-radius: 50% 50% 10px 10px;
    position: absolute;
    top: -16px;
    left: 17px;
}
 
.ring-w2 {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    position: absolute;
    top: -3px;
    left: 42px;
}
 
.ring2 {
    transform: rotate(13deg) scale(1.2);
    z-index: 1;
    left: 250px;
    top: 21px;
}
 
.ring2 .ring-c {
    background-color: rgba(237, 186, 0, .9);
}
 
.ice {
    width: 150px;
    height: 50px;
    background-color: #fff;
    box-shadow: 0px -3px 10px 0px rgba(207, 228, 226, .5);
    transform: rotate(10deg);
    position: absolute;
    top: 52px;
    left: 199px;
    z-index: 10;
    border-radius: 50%;
}
 
.ice::before {
    content: '';
    width: 150px;
    height: 31px;
    background-color: #fff;
    position: absolute;
    top: 21px;
    right: -78px;
    border-radius: 50%;
    transform: rotate(21deg);
    z-index: -1;
    box-shadow: 16px -2px 9px -9px rgba(207, 228, 226, .9);
}
 
.ice::after {
    content: '';
    width: 114px;
    height: 34px;
    background-color: #fff;
    position: absolute;
    top: 16px;
    left: -49px;
    z-index: -1;
    border-radius: 50%;
    transform: rotate(-15deg);
    box-shadow: -12px -6px 9px -9px rgb(207, 228, 226, .9);
}
 
.face {
    width: 230px;
    height: 230px;
    border-radius: 230px 0;
    transform: rotate(49deg);
    background-color: #fff;
    position: absolute;
    left: 65px;
    top: 94px;
    z-index: 5;
}
 
.face-c {
    width: 203px;
    height: 75px;
    border-radius: 50px;
    background-color: #fff;
    position: absolute;
    top: 77px;
    left: -75px;
    transform: rotate(-62deg);
}
 
.face-c1 {
    width: 113px;
    height: 111px;
    border-radius: 50px;
    background-color: #fff;
    position: absolute;
    top: 52px;
    left: -26px;
}
 
.face-c2 {
    width: 98px;
    height: 86px;
    border-radius: 50px;
    background-color: #fff;
    position: absolute;
    top: -42px;
    right: 3px;
}
 
.face-c3 {
    width: 83px;
    height: 69px;
    background-color: #fff;
    border-radius: 100%;
    position: absolute;
    right: -30px;
    top: -26px;
}
 
.face-c4 {
    width: 83px;
    height: 69px;
    background-color: #fff;
    border-radius: 100%;
    position: absolute;
    left: -8px;
    bottom: -19px;
}
 
.face-c5 {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #fff;
    position: absolute;
    top: -3px;
    right: 69px;
}
 
.eyes {
    width: 180px;
    height: 35px;
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 90px;
    left: 5px;
    z-index: 3;
    transform: rotate(-43deg);
}
 
.eye {
    width: 24px;
    height: 31px;
    background-color: #211718;
    border-radius: 50%;
    position: relative;
}
 
.eye::before {
    content: '';
    display: block;
    width: 4px;
    height: 6px;
    background-color: rgba(255, 255, 255, .8);
    position: absolute;
    top: 5px;
    left: 4px;
    border-radius: 5px;
    transform: rotate(30deg);
}
 
.cheeks {
    width: 259px;
    height: 30px;
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 109px;
    left: -4px;
    z-index: 3;
    transform: rotate(-47deg);
}
 
.cheek {
    box-shadow: 0px 0px 20px 20px rgba(212, 161, 178, 1);
    width: 1px;
    height: 1px;
    border-radius: 50%;
    background-color: rgba(212, 161, 178, 1);
}
 
.body {
    width: 226px;
    height: 191px;
    background-color: #D9453B;
    border-radius: 79px 100px 75px 78px;
    margin-left: 120px;
    margin-top: -24px;
    transform: rotate(3deg);
    position: relative;
    z-index: 4;
    -webkit-appearance: none;
    box-shadow: -67px -34px 50px -74px rgba(255, 255, 255, .8) inset;
    padding-top: 80px;
    box-sizing: border-box;
}
 
.body-c {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #fff;
    position: relative;
    margin: 0 auto;
    box-shadow: 0px 0px 30px 36px #fff;
}
 
.text {
    font-size: 12px;
    text-align: center;
    font-weight: bold;
    font-style: oblique;
    position: relative;
    top: -36px;
}
 
.logo {
    width: 42px;
    height: 24px;
    border-radius: 50%;
    box-shadow: 6px 3px 0 0 #03A750;
    position: absolute;
    left: 152px;
    top: 137px;
    transform: rotate(24deg);
    zoom: .7;
}
 
.logo::after {
    content: '';
    width: 42px;
    height: 24px;
    border-radius: 50%;
    box-shadow: 6px 3px 0 0 #1281C6;
    position: absolute;
    left: -3px;
    top: 5px;
    transform: rotate(68deg);
}
 
.logo::before {
    content: '';
    width: 42px;
    height: 24px;
    border-radius: 50%;
    box-shadow: 6px 3px 0 0 #ed344e;
    position: absolute;
    left: -11px;
    top: 5px;
    transform: rotate(129deg);
}
 
.arm-l {
    width: 100px;
    height: 60px;
    background-color: #D9453B;
    position: absolute;
    left: 42px;
    top: 436px;
    z-index: 5;
    border-radius: 25px 37px 25px 53px;
    transform-origin: 100px 30px;
    transform: rotate(21deg);
    box-shadow: -5px -17px 38px -20px rgb(255, 255, 255, 80%) inset;
    animation: 2s ease-in-out 1s infinite lRotate;
}
 
@keyframes lRotate {
    0% {
        transform: rotate(21deg);
    }
 
    10% {
        transform: rotate(30deg);
    }
 
    20% {
        transform: rotate(14deg);
        border-radius: 30px 29px 25px 53px;
    }
 
    30% {
        transform: rotate(28deg);
    }
 
    40%,
    50%,
    60%,
    70%,
    80%,
    90%,
    100% {
        transform: rotate(21deg);
    }
}
 
.arm-r {
    width: 100px;
    height: 60px;
    background-color: #D9453B;
    position: absolute;
    left: 303px;
    top: 466px;
    z-index: 1;
    border-radius: 25px 37px 36px 53px;
    transform: rotate(236deg);
    box-shadow: -30px -42px 30px -36px rgb(255, 255, 255, .7) inset;
}
 
.scarf {
    width: 245px;
    height: 27px;
    background-color: rgba(232, 180, 0, 1);
    border-radius: 20px;
    position: absolute;
    top: 442px;
    left: 115px;
    z-index: 4;
    transform: rotate(3deg);
}
 
.scarf-c {
    width: 18px;
    height: 60px;
    background: rgba(232, 180, 0, 1);
    position: absolute;
    top: 437px;
    left: 128px;
    z-index: 5;
    transform: rotate(13deg);
    border-top-left-radius: 5px;
}
 
.scarf-c .line {
    width: 2px;
    height: 22px;
    position: absolute;
    bottom: 0;
    left: 2px;
    background: #D9453B;
}
 
.scarf-c .line:nth-child(2) {
    left: 6px;
}
 
.scarf-c .line:nth-child(3) {
    left: 10px;
}
 
.scarf-c .line:nth-child(4) {
    left: 14px;
}
 
.leg-l {
    width: 85px;
    height: 48px;
    background-color: #D9453B;
    border-radius: 2px 10px 29px 44px;
    position: absolute;
    top: 595px;
    left: 145px;
    z-index: 4;
}
 
.leg-r {
    width: 84px;
    height: 89px;
    background-color: #D9453B;
    border-radius: 50px 10px 41px 31px;
    position: absolute;
    top: 561px;
    left: 242px;
    z-index: 3;
    transform: rotate(9deg);
    box-shadow: -88px 2px 40px -86px rgb(255, 255, 255, .7) inset;
}
</style>
<body>
<div>
<!--冰墩墩 -->
<canvas id="myCanvas" width="2000" height="2000" style=" width: 37%;float: left;">
</canvas>
<script>
var c = document.getElementById("myCanvas");
var btt = c.getContext("2d");
// 能量外壳
btt.beginPath();
btt.moveTo(497, 462);
btt.bezierCurveTo(452, 380, 497, 184, 666, 297);
btt.bezierCurveTo(792, 255, 921, 261, 1017, 278);
btt.bezierCurveTo(1127, 155, 1227, 305, 1183, 404);
btt.bezierCurveTo(1208, 443, 1238, 488, 1254, 544);
btt.bezierCurveTo(1251, 421, 1503, 398, 1472, 577);
btt.bezierCurveTo(1407, 758, 1336, 789, 1279, 876);
btt.bezierCurveTo(1270, 924, 1255, 1044, 1147, 1222);
btt.bezierCurveTo(1098, 1372, 1211, 1454, 1031, 1457);
btt.bezierCurveTo(877, 1469, 892, 1434, 901, 1376);
btt.bezierCurveTo(924, 1313, 783, 1324, 802, 1378);
btt.bezierCurveTo(822, 1432, 819, 1467, 691, 1469);
btt.bezierCurveTo(571, 1473, 569, 1448, 571, 1332);
btt.bezierCurveTo(572, 1218, 530, 1226, 464, 1038);
btt.bezierCurveTo(386, 1244, 233, 1115, 272, 1017);
btt.bezierCurveTo(306, 916, 365, 845, 407, 777);
btt.bezierCurveTo(433, 669, 449, 545, 497, 462);
btt.stroke();
// 左耳
btt.beginPath();
btt.moveTo(526, 437);
btt.bezierCurveTo(498, 263, 667, 325, 641, 329);
btt.quadraticCurveTo(600, 343, 526, 437);
btt.fillStyle = "#000000";
btt.fill();
btt.stroke();
// 右耳
btt.beginPath();
btt.moveTo(1050, 285);
btt.bezierCurveTo(1144, 232, 1167, 342, 1162, 387);
btt.quadraticCurveTo(1119, 317, 1050, 285);
btt.fillStyle = "#000000";
btt.fill();
btt.stroke();
// 左手
btt.beginPath();
btt.moveTo(417, 804);
btt.bezierCurveTo(430, 837, 435, 914, 457, 968);
btt.bezierCurveTo(445, 1016, 440, 1022, 428, 1053);
btt.bezierCurveTo(396, 1142, 307, 1112, 304, 1048);
btt.quadraticCurveTo(300, 987, 418, 803);
btt.fillStyle = "#000000";
btt.fill();
btt.stroke();
// 右手
btt.beginPath();
btt.moveTo(1267, 593);
btt.bezierCurveTo(1275, 584, 1279, 574, 1280, 555);
btt.bezierCurveTo(1282, 448, 1480, 477, 1429, 575);
btt.bezierCurveTo(1403, 621, 1374, 689, 1287, 757);
btt.quadraticCurveTo(1291, 693, 1267, 594);
btt.fillStyle = "#000000";
btt.fill();
btt.stroke();
// 左脚
btt.beginPath();
btt.moveTo(585, 1231);
btt.bezierCurveTo(626, 1261, 776, 1297, 792, 1336);
btt.bezierCurveTo(756, 1387, 838, 1427, 710, 1428);
btt.bezierCurveTo(505, 1431, 644, 1381, 585, 1231);
btt.fillStyle = "#000000";
btt.fill();
btt.stroke();
// 右脚
btt.beginPath();
btt.moveTo(910, 1342);
btt.bezierCurveTo(981, 1318, 938, 1293, 1125, 1226);
btt.bezierCurveTo(1087, 1370, 1172, 1404, 1014, 1420);
btt.bezierCurveTo(875, 1425, 959, 1403, 910, 1342);
btt.fillStyle = "#000000";
btt.fill();
btt.stroke();
// 仅供学习交流使用
// by SDUT Bulbul
// 左黑眼圈
btt.beginPath();
btt.moveTo(806, 552);
btt.bezierCurveTo(706, 492, 512, 681, 603, 777);
btt.bezierCurveTo(738, 882, 896, 600, 806, 552);
btt.fillStyle = "#000000";
btt.fill();
btt.stroke();
// 右黑眼圈
btt.beginPath();
btt.moveTo(989, 541);
btt.bezierCurveTo(1080, 477, 1251, 684, 1168, 768);
btt.bezierCurveTo(1077, 837, 893, 607, 989, 541);
btt.fillStyle = "#000000";
btt.fill();
btt.stroke();
// 能量圈
btt.beginPath();
btt.lineWidth = 7;
btt.strokeStyle = '#73fd94';
btt.moveTo(497, 772);
btt.bezierCurveTo(425, 371, 1145, 80, 1262, 699);
btt.bezierCurveTo(1294, 945, 1105, 1031, 907, 1040);
btt.bezierCurveTo(716, 1049, 519, 962, 497, 772);
btt.stroke();
   btt.beginPath();
        btt.lineWidth = 5;
        btt.strokeStyle = '#f97dfe';
        btt.moveTo(515, 794);
        btt.bezierCurveTo(405, 421, 1093, 119, 1242, 646);
        btt.bezierCurveTo(1316, 881, 1130, 1001, 898, 1003);
        btt.bezierCurveTo(732, 1005, 562, 961, 515, 794);
        btt.stroke();
 
        btt.beginPath();
        btt.lineWidth = 9;
        btt.strokeStyle = '#ecea87';
        btt.moveTo(611, 909);
        btt.bezierCurveTo(301, 602, 878, 185, 1137, 487);
        btt.bezierCurveTo(1495, 981, 840, 1066, 611, 909);
        btt.stroke();
 
        btt.beginPath();
        btt.lineWidth = 7;
        btt.strokeStyle = '#9ad6ff';
        btt.moveTo(611, 909);
        btt.bezierCurveTo(281, 592, 878, 200, 1137, 487);
        btt.bezierCurveTo(1495, 1001, 840, 1076, 611, 909);
        btt.stroke();
 
        btt.beginPath();
        btt.lineWidth = 5;
        btt.strokeStyle = '#9ad6ff';
        btt.moveTo(515, 794);
        btt.bezierCurveTo(405, 421, 1053, 109, 1242, 646);
        btt.bezierCurveTo(1316, 911, 1150, 1001, 898, 1023);
        btt.bezierCurveTo(732, 1025, 562, 971, 515, 794);
        btt.stroke();
 
        btt.beginPath();
        btt.lineWidth = 7;
        btt.strokeStyle = '#d2fbe5';
        btt.moveTo(545, 674);
        btt.bezierCurveTo(673, 289, 1265, 370, 1215, 773);
        btt.bezierCurveTo(1177, 1083, 453, 1010, 545, 674);
        btt.stroke();
 
        btt.beginPath();
        btt.lineWidth = 7;
        btt.strokeStyle = '#4a46be';
        btt.moveTo(549, 752);
        btt.bezierCurveTo(548, 421, 1037, 320, 1191, 640);
        btt.bezierCurveTo(1309, 1058, 597, 1021, 549, 752);
        btt.stroke();
 
        btt.beginPath();
        btt.lineWidth = 5;
        btt.strokeStyle = '#b5e7fe';
        btt.moveTo(549, 752);
        btt.bezierCurveTo(548, 441, 1057, 300, 1191, 640);
        btt.bezierCurveTo(1319, 1048, 567, 1021, 549, 752);
        btt.stroke();
        // 嘴巴
        btt.beginPath();
        btt.lineWidth = 1;
        btt.strokeStyle = '#000000';
        btt.moveTo(824, 728);
        btt.bezierCurveTo(895, 754, 939, 740, 982, 726);
        btt.bezierCurveTo(935, 782, 861, 764, 824, 728);
        btt.fillStyle = "#000000";
        btt.fill();
        btt.stroke();
 
        btt.beginPath();
        btt.moveTo(870, 750);
        btt.bezierCurveTo(876, 746, 939, 745, 945, 749);
        btt.bezierCurveTo(910, 764, 872, 755, 870, 750);
        btt.fillStyle = "#e5482d";
        btt.fill();
        btt.stroke();
        // 小红心
        btt.beginPath();
        btt.moveTo(1364, 545);
        btt.bezierCurveTo(1359, 525, 1300, 508, 1331, 595);
        btt.bezierCurveTo(1338, 615, 1349, 607, 1356, 605);
        btt.bezierCurveTo(1394, 587, 1420, 532, 1364, 545);
        btt.fillStyle = "red";
        btt.fill();
        btt.stroke();
        // 左眼
        btt.beginPath();
        btt.moveTo(749, 595);
        btt.bezierCurveTo(798, 592, 829, 709, 743, 712);
        btt.bezierCurveTo(659, 707, 686, 593, 749, 595);
        btt.fillStyle = "#ffffff";
        btt.fill();
        btt.stroke();
 
        btt.beginPath();
        btt.moveTo(699, 655);
        btt.bezierCurveTo(696, 596, 782, 574, 783, 653);
        btt.bezierCurveTo(775, 735, 694, 699, 699, 655);
        var l_eye = btt.createRadialGradient(742, 652, 20, 742, 652, 50);
        l_eye.addColorStop(0, "#857343");
        l_eye.addColorStop(1, "black");
        btt.fillStyle = l_eye;
        btt.fill();
        btt.stroke();
 
        btt.beginPath();
        btt.moveTo(719, 655);
        btt.bezierCurveTo(716, 633, 760, 609, 762, 657);
        btt.bezierCurveTo(755, 691, 723, 676, 719, 655);
        btt.fillStyle = "#000000";
        btt.fill();
        btt.stroke();
 
        // 右眼
        btt.beginPath();
        btt.moveTo(988, 630);
        btt.bezierCurveTo(997, 569, 1091, 548, 1087, 647);
        btt.bezierCurveTo(1079, 719, 976, 710, 988, 630);
        btt.fillStyle = "#ffffff";
        btt.fill();
        btt.stroke();
 
        btt.beginPath();
        btt.moveTo(995, 634);
        btt.bezierCurveTo(993, 584, 1077, 559, 1077, 641);
        btt.bezierCurveTo(1068, 707, 993, 689, 995, 634);
        var r_eye = btt.createRadialGradient(1040, 635, 20, 1040, 635, 50);
        r_eye.addColorStop(0, "#857343");
        r_eye.addColorStop(1, "black");
        btt.fillStyle = r_eye;
        btt.fill();
        btt.stroke();
 
        btt.beginPath();
        btt.moveTo(1022, 621);
        btt.bezierCurveTo(1055, 596, 1065, 650, 1042, 659);
        btt.bezierCurveTo(1027, 662, 1002, 646, 1022, 621);
        btt.fillStyle = "#000000";
        btt.fill();
        btt.stroke();
        // 左眼高光
        btt.strokeStyle = '#ffffff';
        btt.beginPath();
        btt.arc(743, 623, 13, 0, 2 * Math.PI);
        btt.fillStyle = "#ffffff";
        btt.fill();
        btt.stroke();
        btt.strokeStyle = '#000000';
 
        btt.strokeStyle = '#5fc2ba';
        btt.beginPath();
        btt.arc(732, 675, 7, 0, 2 * Math.PI);
        btt.fillStyle = "#5fc2ba";
        btt.fill();
        btt.stroke();
        btt.strokeStyle = '#000000';
 
        // 右眼高光
        btt.strokeStyle = '#ffffff';
        btt.beginPath();
        btt.arc(1036, 606, 12, 0, 2 * Math.PI);
        btt.fillStyle = "#ffffff";
        btt.fill();
        btt.stroke();
        btt.strokeStyle = '#000000';
 
        btt.strokeStyle = '#5fc2ba';
        btt.beginPath();
        btt.arc(1024, 659, 7, 0, 2 * Math.PI);
        btt.fillStyle = "#5fc2ba";
        btt.fill();
        btt.stroke();
        btt.strokeStyle = '#000000';
 
        // 鼻子
        btt.beginPath();
        btt.moveTo(914, 646);
        btt.bezierCurveTo(863, 646, 867, 682, 901, 698);
        btt.bezierCurveTo(920, 706, 927, 704, 941, 694);
        btt.bezierCurveTo(970, 668, 961, 644, 914, 646);
        btt.fillStyle = "#000000";
        btt.fill();
        btt.stroke();
 
        btt.beginPath();
        btt.moveTo(886, 666);
        btt.bezierCurveTo(887, 648, 945, 644, 944, 666);
        btt.bezierCurveTo(944, 686, 886, 683, 886, 666);
        var nose = btt.createLinearGradient(910, 650, 910, 675);
        nose.addColorStop(1, "black");
        nose.addColorStop(0, "white");
        btt.fillStyle = nose;
        btt.fill();
        btt.stroke();
    </script>
    <div></div>
    <!--雪容融 -->
    <div class="wrapper" id="xrr">
        <div class="ring">
            <div class="ring-c ring-w"></div>
            <div class="ring-c ring-w1"></div>
            <div class="ring-c ring-w2"></div>
        </div>
        <div class="ring ring2">
            <div class="ring-c ring-w"></div>
            <div class="ring-c ring-w1"></div>
            <div class="ring-c ring-w2"></div>
        </div>
        <div class="ice"></div>
        <div class="head">
            <div class="face">
                <div class="face-c"></div>
                <div class="face-c1"></div>
                <div class="face-c2"></div>
                <div class="face-c3"></div>
                <div class="face-c4"></div>
                <div class="face-c5"></div>
                <div class="eyes">
                    <div class="eye eye-l"></div>
                    <div class="eye eye-r"></div>
                </div>
                <div class="cheeks">
                    <div class="cheek"></div>
                    <div class="cheek"></div>
                </div>
            </div>
            <div class="line"></div>
        </div>
 
        <div class="body">
            <div class="body-c"></div>
            <div class="text">BEIJING 2022</div>
            <div class="logo"></div>
 
        </div>
        <div class="arm arm-l"></div>
        <div class="arm arm-r"></div>
        <div class="scarf"></div>
        <div class="scarf-c">
            <div class="line"></div>
            <div class="line"></div>
            <div class="line"></div>
            <div class="line"></div>
        </div>
        <div class="leg leg-l"></div>
        <div class="leg leg-r"></div>
    </div>
</div>
 
</body>
<script>
const wWidth = window.innerWidth;
if (wWidth < 500) {
const bdd = document.getElementById('xrr');
bdd.style.zoom = ${wWidth / 500};
}
</script>
</html>
        
编辑器加载中
预览
控制台