Home  >  Article  >  Web Front-end  >  html中单个字符的宽度怎么设置_html/css_WEB-ITnose

html中单个字符的宽度怎么设置_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:42:281995browse

html中显示字母或者数字时,font-size相同时,单个字母和数字占有的宽度是不一致的。
当前画面上显示的是000000,我用键盘输入ABCD,依次替换前面的前面的4个0,整个字符变成了ABCD00,同时字符的宽度也发生了变化,怎么才能固定字符的宽度呢?


回复讨论(解决方案)

用一个等宽字体不就可以了

用一个等宽字体不就可以了



谢谢,用你的方法解决了。
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