CSS- 文字排版 :適合新手的文章

Barry YU
Feb 8, 2021

--

進行中的專案:

初學開發者碰到文字排版總是非常頭疼 ,

這關係到RWD , 看起來是不是乾淨 .簡潔 , 舒服 , 大小適當

通常都習慣用 px 作為尺寸設定 . 可是當網頁面及文字非常多的時候, 需要微調會非常麻煩. 尺寸比例不是改一個數值就好. 要整體都看起來有平衡感.

所以我會推薦使用 rem .

因為rem 和 % 很像都是相對參照Root 去改變大小 . 當文字微調時只要改變Root 就可以了 .

名稱為 : Root + em => 1 em 當父(上一層)沒有設定大小的預設是16px

文字排版

文字大小通常建議設定在0.8 rem .

行距間隔 建議設定在 1 rem

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response