Computer >> Hướng Dẫn Máy Tính >  >> Lập Trình >> JavaScript

Phiên bản hiện tại của CSS

Không có "CSS4". CSS hiện nay phát triển theo **Module Level** độc lập.

Lịch sử phiên bản monolithic

Phiên bảnNăm RECNội dung
CSS112/1996Font, color, text, box model cơ bản.
CSS205/1998Media types, positioning, @font-face, generated content.
CSS2.106/2011Sửa lỗi CSS2, chuẩn thực tế lâu năm.

CSS3 = Modules (từ 1999)

Mỗi module có level và trạng thái riêng:

ModuleLevel hiện tạiTrạng tháiTính năng chính
SelectorsLevel 3 (REC), Level 4 (WD)REC / WD:nth-child, :not(), ::before, attribute selectors
ColorLevel 3 (REC), Level 4 (WD), Level 5 (ED)REC / WDrgba, hsl, opacity, color(), lab, lch
FlexboxLevel 1 (REC)RECFlex layout 1 chiều
GridLevel 1 (REC), Level 2 (WD)REC / WDGrid layout 2 chiều
Media QueriesLevel 3 (REC), Level 4 (CR), Level 5 (WD)REC / CRResponsive, prefers-color-scheme, pointer
AnimationsLevel 1 (WD)WD@keyframes, animation-*
TransformsLevel 1 (WD), Level 2 (WD)WDrotate, scale, translate, 3D
FontsLevel 3 (REC), Level 4 (WD)REC / WD@font-face, font-display, variable fonts

Kiểm tra hỗ trợ

Dùng Can I use hoặc MDN để xem trình duyệt hỗ trợ module/level nào.