<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
body {
margin: 0;
padding: 0;
background: url(./images/bg.jpg);
}

.layer {
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
/*background-color: rgba(0, 0, 0, 0.3);*/
background-color: hsla(0, 10%, 10%, 0.3);
/*opacity: 0.3;*/
/*width: 100%;
height: 100%;*/
}
</style>
</head>
<body>
<div class="layer">
<img src="./images/layer.jpg" alt="">
</div>
</body>
</html>

相关文章:

  • 2021-05-29
  • 2022-12-23
  • 2022-01-17
  • 2021-08-22
  • 2022-12-23
  • 2021-11-17
  • 2021-08-20
  • 2021-07-29
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-09
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
相关资源
相似解决方案