Menu
CoddyTech

类图标

Coddy 图片折叠面板:前端项目 课程的第 13 课,共 17 课。

challenge icon

挑战

简单

目标类“icon”:

  1. 将高度设为 30 像素。
  2. 将显示方式设为 Flex。
  3. 将 justify-content 设为 center。
  4. 将 align-items 设为 center。
  5. 将外边距设为 15px。

亲手试试

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

图片折叠面板:前端项目中的所有课

自己练习: Web 在线编辑器