LoginSignup
4
4

More than 5 years have passed since last update.

海外製のテーマに手っ取り早く日本語フォントを割り当てる時に使うCSS

Posted at
japanese.css
.japanese {
    font-family:Myriad,Helvetica,Arial,"Meiryo","メイリオ",sans-serif;
}

海外で配布されているテーマは、記事の表示部分とかに当たっているフォントは通常、英語フォントのみ。かといって、body全体とか広い範囲に日本語フォントを当てると表示が崩れる箇所とかあります。
日本語が表示される部分にだけ、このクラスを当てるようにすると、それなりに見栄えが良くなります(細かい調整は必要なのですが)。趣味でデザインいじる時は良く使ってます。

4
4
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4