Skip to content

Instantly share code, notes, and snippets.

@if540
Created November 16, 2014 10:20
Show Gist options
  • Save if540/7815c2ed0372c509f43c to your computer and use it in GitHub Desktop.
Save if540/7815c2ed0372c509f43c to your computer and use it in GitHub Desktop.
中文網頁排版 - 段落最佳設定
// 適當閱讀行距
line-height: 1.7em;
// 齊左右
text-align: justify;
text-justify: ideographic;
// 利用 text-indent 做到首段空兩隔空白
margin: 0;
text-indent: 2em;
// 網頁呈現上,段落之間加上空白
margin-bottom: 0.5em;
// 強制對齊,但有缺點是英文字會被強制切開 & 無視避頭點規則,讓逗號、句號出現在行頭。
word-break: break-all;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment