Menu
CoddyTech

Lớp 'glass'

Bài học 14 trên 31 trong khóa học Thẻ 3D | Dự án front-end của Coddy.

challenge icon

Thử thách

Dễ

Lớp mục tiêu ‘glass’:

  1. Đặt position thành absolute
  2. Đặt inset thành 8 pixel.
  3. Đặt border radius thành 55px.
  4. Đặt border-left và border-bottom thành 1px solid white.
  5. Đặt transform-style thành preserve-3d.

Tự làm thử

<!DOCTYPE html>
<html>
<head>
    <link rel="stylesheet" href="styles.css">
</head>
    <body>
        <!-- Viết code HTML ở đây -->
        <script src="script.js"></script>
    </body>
</html>

Tất cả bài học trong Thẻ 3D | Dự án front-end

Tự luyện tập: Playground Web