模糊的主视觉图
本课属于 Coddy HTML 学习旅程的“精通 CSS”单元。第 43 课,共 43 课。
挑战
简单在 .gallery 单元中有一张纽约市的图片。
你的任务是使用 CSS 为它应用模糊滤镜,值为 2px。
亲手试试
<html>
<head>
<title>Blurred Hero Image</title>
<style>
/* Add your CSS styles here: */
img {
width: 100%;
}
</style>
</head>
<body>
<div class="gallery">
<img src="https://upload.wikimedia.org/wikipedia/commons/0/05/View_of_Empire_State_Building_from_Rockefeller_Center_New_York_City_dllu.jpg
">
</div>
</body>
</html>
精通 CSS中的所有课
自己练习: Web 在线编辑器