<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
/* First lets set a background */
.bg{
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: url('https://images.unsplash.com/photo-1431352832634-845fad190fbd?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&s=ec80c41e488dc2b99ed543df2f3f0919');
background-position: center center;
background-origin: content-box;
background-size: cover;
background-attachment: fixed;
z-index: -2;
}
/* Now the same background, but with brightness filters*/
.lightning{
position: fixed;
top: 0;
left: 0;
width: 100%;
css图片闪电闪光效果
最新推荐文章于 2024-04-08 17:23:06 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)