|
|

楼主 |
发表于 2022-1-26 00:58
|
显示全部楼层
- <style type="text/css">
- .mnBox {
- position: relative;
- margin: 0 auto;
- padding: 35px;
- width: 660px;
- border: none;
- border-top: 6px solid #000; /* 顶部边框样式*/
- border-radius: 10px;
- background: #b3c3c3;
- }
- .ctBox {
- margin: 0;
- padding: 30px;
- background: #fff;
- min-height: 300px;
- border-radius: 10px;
- box-shadow: 1px 3px 2px 2px rgba(4,4,4,.6);
- }
- .ctBox p,img, h2,button { text-align:center; }
- .picBtn {
- width: 32px;
- height: 32px;
- outline: none;
- border: none;
- border-radius: 8px;
- background: transparent url('https://pic.imgdb.cn/item/61e44c692ab3f51d917ef9ed.png') no-repeat;
- cursor: pointer;
- box-shadow: 1px 1px 2px 1px rgba(0,0,0,.25);
- }
- .picBtn:hover {
- opacity: 0.95;
- box-shadow: 1px 1px 2px 2px rgba(0,0,0,.3);
- }
- .picBtn:active {
- opacity: 0.8;
- box-shadow: 1px 1px 1px 0px rgba(0,0,0,.5);
- }
- </style>
- <div class="mnBox">
- <div class="ctBox">
- <p><img alt="550 height="467"="" src="https://pic.imgdb.cn/item/60f989c85132923bf81abe08.jpg" /></p>
-
- <h2 style="padding-bottom: 10px;">你莫走 (童声版)</h2>
-
- <h2 style="text-align:center;">TO:马黑黑</h2>
- <pre>
- 男:妹儿丫头你莫走
- 唱首歌歌儿把你留
- 歌中有我对你的真情
- 歌中有你的温柔
- 女:哥哥哥哥我不走
- 妹妹陪你到白头
- 陪你直到星星不眨眼
- 陪你直到月亮躲山沟
- 男:你莫走
- 女:我不走
- 男:赌过咒
- 女:拉过勾
- 男:你莫走
- 女:我不走
- 男:天做被
- 女:地当铺
- </pre>
- <div style="position:absolute; width:120px; left:400px; top: 1280px; text-align:center;">
- <p ><font color="#222222" size="2" >
- <marquee scrollamount="2" direction="left" >你莫走 (童声版)</marquee>
- <div style="position:absolute; width:150px; left:-10px; top: 50px; text-align:center;">
- <p><audio id="music" src="https://www.joy127.com/url/84973.mp3" loop="loop" autoplay="autoplay" ></audio> </p>
- <p><button id="picBtn" class="picBtn"></button></p><br>
- <p>小辣椒 2022 01 26</p>
- </div>
- </div>
- </div>
- </div>
- <script language="javascript">
- var mu = document.getElementById('music');
- var btn = document.getElementById('picBtn');
- btn.onclick = function(){
- mu.paused ? (mu.play(), btn.style.background="url('https://pic.imgdb.cn/item/61e44c692ab3f51d917ef9ed.png')") : (mu.pause(), btn.style.background="url('https://pic.imgdb.cn/item/61e44c422ab3f51d917ee4e6.png')");
- }
- mu.addEventListener("ended", function(){
- btn.style.background="url('https://pic.imgdb.cn/item/61e44c422ab3f51d917ee4e6.png')";
- })
- </script>
复制代码 |
|