HTML中的ASCII艺术 [英] ASCII art in HTML

查看:138
本文介绍了HTML中的ASCII艺术的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆