How to set the width of a single character in html_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:42:28
Original
2045 people have browsed it

When displaying letters or numbers in HTML, when the font-size is the same, the width occupied by a single letter and number is inconsistent.
The current screen displays 000000. I use the keyboard to input ABCD and replace the previous 4 zeros in sequence. The entire character becomes ABCD00. At the same time, the width of the character also changes. How can I fix the width of the character? ?


Reply to discussion (solution)

Just use a monospace font

Use a monospace font It's ok



Thank you, I solved it with your method.
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template