Home >Web Front-end >Front-end Q&A >What are the css monospaced fonts?

What are the css monospaced fonts?

藏色散人
藏色散人Original
2021-01-05 10:53:046464browse

css monospace fonts include Menlo, Monaco, Courier New, monospace, etc. Monospace fonts mean that each character occupies the same width under the same font-sieze.

What are the css monospaced fonts?

The operating environment of this tutorial: Windows 7 system, css3 version, Dell G3 computer.

Related recommendations: "css video tutorial"

Monospace font (English & numbers & symbols)

1. Source of the problem

There is a textarea in the project that requires a large number of characters to be entered. The effect is as shown below. Each line has a newline character. And the number of characters per line is the same.

What are the css monospaced fonts?

#In fact, the number of characters in each line is the same, the display is not friendly enough, and the end is not aligned. If you want the following effect, align the end.

What are the css monospaced fonts?

Answer: Use fixed-width fonts

2. What are fixed-width fonts

Mono-width fonts refer to the same font Under -sieze, each character occupies the same width. Oriental square characters are usually monospaced, but not necessarily English characters, for example:

What are the css monospaced fonts?

3. What are the monospaced fonts?

Monospace fonts have a larger width , looks more comfortable. Usually used to display program source code, etc. Commonly used fixed-width fonts include

Menlo, Monaco, 'Courier New', monospace, etc.

The above is the detailed content of What are the css monospaced fonts?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:what is css componentNext article:what is css component