HTML映像學習-9.20

來源:互聯網
上載者:User

標籤:使用   sp   on   c   html   amp   ef   r   htm   

1、插入一副圖

<img src="/i/eg_mouse.jpg" width="128" height="128" />

2、eg:添加背景圖片

<body background="/i/eg_background.jpg"> 注意路徑絕對要正確

3、

<1>圖片插入文字中,但未設定對齊

<p>映像 <img src ="/i/eg_cute.gif"> 在文本中</p>  預設為底部對齊

<2>圖片插入文字中,設定對齊

<p>映像 <img src="/i/eg_cute.gif" align="bottom"> 在文本中</p>    底部對齊

<p>映像 <img src ="/i/eg_cute.gif" align="middle"> 在文本中</p>   中間對齊

<p>映像 <img src ="/i/eg_cute.gif" align="top"> 在文本中</p>        頂部對齊

4、浮動映像

<p>
<img src ="/i/eg_cute.gif" align ="left">
帶有映像的一個段落。映像的 align 屬性設定為 "left"。映像將浮動到文本的左側。
</p>

5、為圖片顯示替換文本

<img src="/i/eg_goleft.gif" alt="向左轉" /> 如果您把滑鼠指標移動到映像上,會顯示需求替換文本,如果無法顯示映像,將顯示 "alt" 屬性中的文本

6、製做圖片連結

<p>
您也可以把映像作為連結來使用:
<a href="/example/html/lastpage.html">
<img border="0" src="/i/eg_buttonnext.gif" />
</a>
</p>

點擊圖片可以連結到指定位置

7、

 

HTML映像學習-9.20

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.