Menu
CoddyTech

卡片类

Coddy 滑块 | 前端项目 课程的第 17 课,共 23 课。

challenge icon

挑战

简单

目标 card 类:

1. 将 scroll-snap-align 设置为 start。

2. 设置你想要的 height(建议大于 300px)。

3. 将 list-style 设置为 none。

4. 设置你想要的背景颜色。

5. 将 cursor 设置为 pointer。

6. 将底部 padding 设置为 15 像素。

7. 将 flex-direction 设置为 column。

8. 设置你想要的圆角半径。

亲手试试

<!DOCTYPE html>
<html>
<head>
    <link rel="stylesheet" href="styles.css">
</head>
    <body>
        <!-- 在这里编写 HTML 代码 -->
        <script src="script.js"></script>
    </body>
</html>

滑块 | 前端项目中的所有课

自己练习: Web 在线编辑器