侧边栏 - II
Coddy 侧边栏|前端项目 课程的第 7 课,共 13 课。
挑战
简单目标类“sidebar”:
1. 将 top 和 right 设为 0。
2. 将背景模糊度设为 10 像素。
亲手试试
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="styles.css">
<title>Sidebar</title>
</head>
<body>
<button id="openSidebarBtn">Open</button>
<div id="sidebar" class="sidebar">
<button id="closeSidebarBtn">Close</button>
<p>Home</p>
<p>About</p>
<p>Services</p>
<p>Contact</p>
</div>
<script src="script.js"></script>
</body>
</html>侧边栏|前端项目中的所有课
自己练习: Web 在线编辑器