<style>
@import 'https://638183.freep.cn/638183/web/ku/hcplayer3in1.css?v=1';
#tz { width: 1280px; height: 720px;background: #192039 url('https://638183.freep.cn/638183/t24/webp3/x.webp') no-repeat center/cover; }
#mplayer { bottom: 30px; }
#fsbtn { top: 30px; left: 30px; }
</style>
<div id="tz" class="pa">
<audio id="aud" src="https://music.163.com/song/media/outer/url?id=1835389484" autoplay loop></audio>
<video class="vid" src="https://bpic.588ku.com/video_listen/588ku_video/22/11/03/13/49/58/video63635686b7b48.mp4" autoplay loop></video>
</div>
<script type="module">
import { hcplay } from 'https://638183.freep.cn/638183/web/ku/hcplayer3in1.js?v=1';
hcplay(tz);
const xCenter = (el) => {
const rt = el.getBoundingClientRect();
const ww = window.innerWidth;
const ox = (ww - rt.width) / 2 - rt.left;
el.style.transform = `translateX(${ox}px)`;
};
xCenter(tz);
</script>
|