</2017><2018>

>>> Blog 随笔原始文档及源代码 -> github: https://github.com/StackLike/Python_Note

>>> 统计信息 -> 随笔总篇数: 108 随笔总字数: 181,218

 

转载于:https://www.cnblogs.com/stacklike/p/8159476.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>音乐相册</title> <style> @import url("CSS/ring.css"); @import url("CSS/square.css"); /* 定义动画 */ @keyframes box-ani{ /* 开始动画 */ from{ transform: rotateX(-15deg) rotateY(10deg); } /* 结束动画 */ to{ transform: rotateX(-15deg) rotateY(370deg); } } /* 使用动画 */ .box{ animation-name: box-ani; animation-duration: 10s; animation-iteration-count: infinite; animation-timing-function: linear; } </style> </head> <body> <div class="btn-box"> <button class="btn">环形</button> <button class="btn-square">正方体</button> </div> <div class="box square"> <img src="img/w01.jpg" alt=""/> <img src="img/w02.jpg" alt=""/> <img src="img/w03.jpg" alt=""/> <img src="img/w04.jpg" alt=""/> <img src="img/w05.jpg" alt=""/> <img src="img/w06.jpg" alt=""/> <img src="img/w07.jpg" alt=""/> <img src="img/2014.jpg" alt=""/> <img src="img/2015.jpg" alt=""/> <img src="img/2016.jpg" alt=""/> <img src="img/2017.jpg" alt=""/> <img src="img/2018上.jpg" alt=""/> </div> </body> <script> var btn =document.querySelector(".btn"); var box =document.querySelector(".box"); var btnSquare=document.querySelector(".btn-square") btn.onclick =function(){ // 现在点击以后要在box的盒子上面添加一个class 为ring的样式 box.classList.remove("square"); box.classList.add("ring"); } btnSquare.onclick =function(){ box.classList.remove("ring"); box.classList.add("square"); } </script> </html>帮我写一个可以添加背景音乐的代码
最新发布
06-09
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值