类“bottom”
Coddy 3D 卡片 | 前端项目 课程的第 18 课,共 31 课。
挑战
简单目标类“bottom”:
- 将 display 设置为 Flex。
- 将 align-items 设置为 center。
- 将 justify-content 设置为 space-between
- 将 position 设置为 absolute。
- 将 bottom、left 和 right 设置为 20 像素。
- 将上、下方向的内边距设置为 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 卡片 | 前端项目中的所有课
1简介
你将构建什么?自己练习: Web 在线编辑器