Home >Web Front-end >HTML Tutorial >网页上怎么使中英文混编时实现等宽显示?_html/css_WEB-ITnose

网页上怎么使中英文混编时实现等宽显示?_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-21 08:55:241581browse

如下代码是不行的

<html><head><style type="text/css">body {font-family: 'Courier New', Courier, monospace;}</style></head><body><xmp class="table">+--------+--------+|发送者  |接收者  |+--------+--------++--------+--------+|sender  |receiver|+--------+--------+</xmp></body></html>


回复讨论(解决方案)






 

  <br>+--------+--------+  <br>|发送者  |接收者  |  <br>+--------+--------+  <br>   <br>+--------+--------+  <br>|sender  |receiver|  <br>+--------+--------+  <br>


设置字体格式为等宽

怎么不行?截个图看看

禁止网页设置字体

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