为了使网页中的文字显示更加整齐、美观,可以使用以下标记进行设置。
基本语法:
<tt>…</tt>
<samp>…</samp>
<code>…</code>
<kbd>…</kbd>
01:<!--程序3-13-->
02:<html>
03:<head>
04: <title>设置等宽文字</title>
05:</head>
06:<body>
07: <h2>成功源于努力去克服困难</h2>
08: <p><tt>Success grows out of struggles to
overcome difficulties.</tt></p>
09: <p><samp>Success grows out of struggles to
overcome difficulties.</samp></p>
10: <p><code>Success grows out of struggles to
overcome difficulties.</code></p>
11: <p><kbd>Success grows out of struggles to
overcome difficulties.</kbd></p>
12:</body>
13:</html>
已有 22658 名学员学习以下课程通过考试
最需教育客户端 软件问题一手掌握
去 App Store 免费下载 iOS 客户端
点击加载更多评论>>