text-monospace

bootstrap5.css

bootstrap5.css
.text-monospace {
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
}

html bootstrap5 Sample

等幅フォント:text-monospace


monospace
日本語の場合

  <p class="text-monospace">monospace<br>日本語の場合</p>