HTML中的ASCII艺术 [英] ASCII art in HTML
问题描述
What could I do to make it print like it looks in the HTML document in the web browser?
我该怎么做才能让它的打印效果看起来像在Web浏览器中的HTML文档中? c $ c><!DOCTYPE html PUBLIC - // W3C // DTD XHTML 1.0 Transitional // EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional。 DTD>
< html xmlns =http://www.w3.org/1999/xhtml>
< head>
< title>示例< / title>
< / head>
< body>
########################
##### ## #####
# #### ################
### ##############
#### ######
################### ######
< / body>
< / html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Example</title>
</head>
<body>
###### # # ## # # ##### # ######
# # # # # ## ## # # # #
##### ## # # # ## # # # # #####
# ## ###### # # ##### # #
# # # # # # # # # #
###### # # # # # # # ###### ######
</body>
</html>
给出:
Gives:
######################## ####### #### ## ###### ####### ## #### ## ############################################# ######
# # ## # # ##### # ###### # # # # # ## ## # # # # ##### ## # # # ## # # # # > ##### # ## ###### # # ##### # # # # # # # # # # # # ###### # # # # # # # ###### ######
推荐答案
Use the <pre>
tag! Put it before and after your EXAMPLE.
< / body>
< / html>
这篇关于HTML中的ASCII艺术的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!