位置:首頁 > 軟件操作教程 > 編程開發(fā) > HTML > 問題詳情

3.3.6設(shè)置等寬文字 html

提問人:劉團(tuán)圓發(fā)布時間:2020-11-03

為了使網(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> 

image.png


繼續(xù)查找其他問題的答案?

相關(guān)視頻回答
回復(fù)(0)
返回頂部