pre: 预格式化文本

2017-06-05 11:30:00
admin
原创
305
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>元素pre</title>
</head>
<body>
<pre>
望洞庭湖赠张丞相	孟浩然
八月湖水平,涵虚混太清。 
气蒸云梦泽,波撼岳阳城。 
欲济无舟楫,端居耻圣明。 
坐观垂钓者,徒有羡鱼情。 
</pre>
<pre>
The PRE element tells visual user agents that the enclosed text is "preformatted". When handling preformatted text, visual user agents:
May leave white space intact. 
May render text with a fixed-pitch font. 
May disable automatic word wrap. 
Must not disable bidirectional processing. 
Non-visual user agents are not required to respect extra white space in the content of a PRE element.
The DTD fragment above indicates which elements may not appear within a PRE declaration. This is the same as in HTML 3.2, and is intended to preserve constant line spacing and column alignment for text rendered in a fixed pitch font. Authors are discouraged from altering this behavior through style sheets.
</pre>
From<cite> W3C HTML 4.01 Specification</cite>
</body>
</html>
文章分类
联系我们
电话: 18902328227
Email: 2689701946@qq.com
QQ: 2689701946
微信: 18902328227
地址: 广州番禺区繁华路
  • 在线客服
  • 关注微信
  • 联系电话
    • 欢迎咨询
    • 欢迎加入QQ群 303257430
  • 公众号:源宝网络
    • 联系电话及微信号 18902328227