|
|

楼主 |
发表于 2025-10-12 17:48
|
显示全部楼层
代码
- <style>
- .pa {
- margin: 20px auto;
- width: 700px;
- height: 400px;
- border: 1px solid gray;
- display: grid;
- place-items: center;
- position: relative;
- }
- .player {
- position: absolute;
- width: 300px;
- height: 300px;
- display: grid;
- place-items: center;
- }
- .rect {
- position: absolute;
- width: 35%;
- height: 95%;
- background: var(--cc);
- clip-path: polygon(0 0, 50% 5%, 100% 0, 50% 50%, 100% 100%, 50% 95%, 0 100%, 50% 50%, 0 0);
- -webkit-clip-path: polygon(0 0, 50% 5%, 100% 0, 50% 50%, 100% 100%, 50% 95%, 0 100%, 50% 50%, 0 0);
- }
- </style>
- <div class="pa"></div>
- <script type="module">
- import TZ from 'https://638183.freep.cn/638183/web/tz/tz.c.trial.js?v1';
- const tz = TZ.TZ('pa');
-
- tz.add('div', 'lz-pa', 'player');
- tz.lzRot(3, 'lz-pa', { className: 'rect', a: 180 });
- </script>
复制代码
|
|