轮播图中的类
Coddy 滑块 | 前端项目 课程的第 16 课,共 23 课。
挑战
简单在类 carousel 中,同时选中类 card 和类 img:
1. 将 display 设置为 flex。
2. 将 align-items 设置为 center。
3. 将 justify-content 设置为 center。
亲手试试
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<!-- 在这里编写 HTML 代码 -->
<script src="script.js"></script>
</body>
</html>滑块 | 前端项目中的所有课
自己练习: Web 在线编辑器