通过创作罗斯科绘画学习 CSS 盒子模型 - 步骤 34

告诉我们发生了什么:
在此详细描述你的问题。

你目前的代码

/* file: styles.css */
.canvas {
  width: 500px;
  height: 600px;
  background-color: #4d0f00;
  overflow: hidden;

/* User Editable Region */

p {
  filter:blur(2px);
}

/* User Editable Region */

}

.frame {
  border: 50px solid black;
  width: 500px;
  padding: 50px;
  margin: 20px auto;
}

.one {
  width: 425px;
  height: 150px;
  background-color: #efb762;
  margin: 20px auto;
}

.two {
  width: 475px;
  height: 200px;
  background-color: #8f0401;
  margin: 0 auto 20px;
}

.three {
  width: 91%;
  height: 28%;
  background-color: #b20403;
  margin: auto;
}
<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>Rothko Painting</title>
    <link href="./styles.css" rel="stylesheet">
  </head>
  <body>
    <div class="frame">
      <div class="canvas">
        <div class="one"></div>
        <div class="two"></div>
        <div class="three"></div>
      </div>
    </div>
  </body>
</html>

你的浏览器信息:

用户代理是: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36

挑战: 通过创作罗斯科绘画学习 CSS 盒子模型 - 步骤 34

挑战的链接:

it’s not work.

题目要求 使用 filter 属性在 .canvas 元素中使其 blur2px

在题目中,已经有 .canvas {} 元素,它有 widthheight 等等属性,你只需要输入 filter 属性,而这个属性应该是什么值,根据题目要求即可。

这跟 p 元素没有关系。