本帖最后由 加林森 于 2022-5-8 20:59 编辑 <br /><br />红影 发表于 2022-2-4 14:18
未来的世界。打错字了
哦,知道了。
<style>
.outer { left: -214px; width: 1024px; height: 682px; background: linear-gradient(45deg, red, green), url('https://pic.imgdb.cn/item/6277997609475431298091cc.jpg') no-repeat center/cover; background-blend-mode: overlay, normal; filter: drop-shadow(0 0 10px gray); opacity: .95; position: relative; }
.outer h2 { margin: 0; position: absolute; left: 80%; top: 10px; font: bold 1.5em sans-serif; color: teal; text-shadow: 1px 1px 2px #222; }
.spic { position: absolute; width: 300px; height: 300px;LEFT: 150px; top: 250px; mix-blend-mode: multiply; }
.r-small { position: absolute; width: 100px; height: 100px; border-radius: 50%; top: calc(100% - 120px); left: calc(100% - 120px); cursor: pointer; text-align: center; animation: rot 6s linear infinite; }
@keyframes rot { to { transform: rotate(1turn); } }
</style>
<div class="outer">
<h2>慈祥的母亲--群星</h2>
<img class="spic" src="https://pic.imgdb.cn/item/6235d74f5baa1a80ab9d74a0.gif" alt="" />
<div class="outer r-small"></div>
</div>
<script>
let flag = true;
let ele = document.querySelector('.r-small');
let au = document.createElement('audio');
au.src = 'https://music.163.com/song/media/outer/url?id=5248546.mp3';
au.loop = true;
au.autoplay = flag;
au.style.display = 'none';
ele.appendChild(au);
if(!flag) ele.style.animationPlayState = 'paused';
ele.onclick = function() { flag ? (au.pause(), this.style.animationPlayState = 'paused', flag = false) : (au.play(), this.style.animationPlayState = 'running', flag = true); }
</script>
加林森 发表于 2022-2-4 17:44
哦,知道了。
我总打错字{:4_173:}
红影 发表于 2022-2-4 18:14
我总打错字
大家都差不多的。{:4_189:}
加林森 发表于 2022-2-4 18:19
大家都差不多的。
还好,队长错字的时候不多的{:4_173:}
红影 发表于 2022-2-4 18:27
还好,队长错字的时候不多的
我回得慢,自己先看看再发出去的。{:4_189:}
加林森 发表于 2022-2-4 18:29
我回得慢,自己先看看再发出去的。
我是回完就发送了{:4_173:}
红影 发表于 2022-2-4 18:36
我是回完就发送了
比我厉害{:4_189:}
加林森 发表于 2022-2-4 19:13
比我厉害
所以总是出错啊{:4_173:}
红影 发表于 2022-2-4 20:28
所以总是出错啊
不怕不怕。没有什么的。