profile-img 类
Coddy Coddy 个人资料卡克隆 | 前端项目 课程的第 16 课,共 26 课。
挑战
简单目标类 ‘profile-img’:
- 将 height 和 width 设为 100%。
- 将 border-radius 设为 50%。
- 将 object-fit 设为 cover。
亲手试试
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<!-- 在这里编写 HTML 代码 -->
<script src="script.js"></script>
</body>
</html>Coddy 个人资料卡克隆 | 前端项目中的所有课
自己练习: Web 在线编辑器