3.3.6設(shè)置等寬文字 html
為了使網(wǎng)頁中的文字顯示更加整齊、美觀,可以使用以下標(biāo)記進(jìn)行設(shè)置。
基本語法:
<tt>…</tt>
<samp>…</samp>
<code>…</code>
<kbd>…</kbd>
01:<!--程序3-13-->
02:<html>
03:<head>
04: <title>設(shè)置等寬文字</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>
點(diǎn)擊加載更多評(píng)論>>