Menu
CoddyTech

buttons 类

Coddy Coddy 个人资料卡克隆 | 前端项目 课程的第 22 课,共 26 课。

challenge icon

挑战

简单

在类 ‘buttons’ 中,选择类 ‘button’:

  1. 将颜色设为白色。
  2. 将 font-size 设为 14 像素。
  3. 将 border 设为 none,并将 border-radius 设为 24 像素。 
  4. 将上下边距设为 0px,左右边距设为 10px。
  5. 将上下内边距设为 3 像素,左右内边距设为 18 像素。
  6. 将背景颜色设为 #4070f4。

亲手试试

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

Coddy 个人资料卡克隆 | 前端项目中的所有课

自己练习: Web 在线编辑器