跳至內容

其他功能

其他 CSS 功能。

CSS 變數(自訂參數)

留言19
Compare Data
從未聽過
知道是什麼
已經有用過
We asked members of the CSS community to share their “pick of the year”

My 2023 Pick: text-wrap: balance

Headlines should dazzle and read like a breeze, even if screens play hard to predict. I've battled those annoying solo words at line's end (hello, widow words!), but guess what? Enter text-wrap: balance – one-liner-fix wizardry that's pure magic!

We asked members of the CSS community to share their “pick of the year”

Ahmad Awais

VP DevRel & Google Developers Advisory Board founding member

@supports

留言9
Compare Data
從未聽過
知道是什麼
已經有用過

CSS 比較函式 (Comparison Functions)

留言7
Compare Data
從未聽過
知道是什麼
已經有用過

@property

留言16
Compare Data
從未聽過
知道是什麼
已經有用過

::marker

留言12
Compare Data
從未聽過
知道是什麼
已經有用過
留言38
Compare Data
從未聽過
知道是什麼
已經有用過

:where()

留言8
Compare Data
從未聽過
知道是什麼
已經有用過

Cascade Layers

留言16
Compare Data
從未聽過
知道是什麼
已經有用過

Shadow DOM Features

留言8
Compare Data
從未聽過
知道是什麼
已經有用過

Trigonometric Functions

留言8
Compare Data
從未聽過
知道是什麼
已經有用過

CSS Nesting

留言65
Compare Data
原生的 CSS 巢狀結構,不包和預或後處理器。
從未聽過
知道是什麼
已經有用過

image-set()

留言8
Compare Data
從未聽過
知道是什麼
已經有用過
留言8
Compare Data
從未聽過
知道是什麼
已經有用過

Individual Transform Properties

留言16
Compare Data
從未聽過
知道是什麼
已經有用過

推薦資源

Dynamic CSS with Custom Properties (aka CSS Variables)
Lea Verou
MIT

Dynamic CSS with Custom Properties (aka CSS Variables)

Modern browsers ship with CSS Custom Properties, also known as “CSS variables”, a superpower that enables us to create reusable components without any JavaScript dependencies needed
感謝贊助我們的伙伴! 深入瞭解。