2023-07-01 CSS)<pre>で等幅フォントを使う。 はてなブログ ホームページ、Web作成 はてなブログの<pre> で等幅フォントを使う方法の備忘録。 以下のスタイルを追加。 <style>pre { font-family: Consolas, 'Courier New', Courier, Monaco, monospace; font-size: 14px; line-height: 1.2;}</style> 表示例は以下。