Menu
CoddyTech

类“bottom”

Coddy 3D 卡片 | 前端项目 课程的第 18 课,共 31 课。

challenge icon

挑战

简单

目标类“bottom”:

  1. 将 display 设置为 Flex。
  2. 将 align-items 设置为 center。
  3. 将 justify-content 设置为 space-between
  4. 将 position 设置为 absolute。
  5. 将 bottom、left 和 right 设置为 20 像素。 
  6. 将上、下方向的内边距设置为 10px,左右方向的内边距设置为 12px

在末尾添加以下属性,以获得精准的效果:

transform-style: preserve-3d;
transform: translate3d(0, 0, 26px); 

亲手试试

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

3D 卡片 | 前端项目中的所有课

自己练习: Web 在线编辑器