qq_39504396
qq_39504396
2021-01-21 14:35

js动态切换背景图片闪烁

  • css
  • javascript
setTimeout(function () {
						document.body.style = 'background-image: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url("resource/images/dms3/u1.jpg")';
					}, 2500);
setTimeout(function () {
						document.body.style = 'background-image: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url("resource/images/dms3/u1.jpg")';
					}, 3500);
setTimeout(function () {
						document.body.style = 'background-image: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url("resource/images/dms3/u1.jpg")';
					}, 4500);

 

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

2条回答

为你推荐

换一换