定義在文檔中嵌入圖像或視頻片斷。 Embeds an image or a video clip in the document. 注釋當(dāng)此元素接收到 input 焦點(diǎn)時(shí),并不會(huì)觸發(fā) onfocus 事件,除非該元素已經(jīng)與 MAP 元素相關(guān)聯(lián)。 從 Internet Explorer 5 起支持下列圖像和視頻文件格式。
當(dāng)使用 IMG 元素顯示靜態(tài)圖像時(shí),請(qǐng)用 SRC 標(biāo)簽屬性指定圖像文件的 URL。當(dāng)使用 IMG 元素顯示視頻片斷或虛擬現(xiàn)實(shí)模型語言(VRML)世界時(shí),請(qǐng)用 DYNSRC 標(biāo)簽屬性指定 URL。 此元素在 Internet Explorer 3.0 及以上版本的 HTML 中可用,在 Internet Explorer 4.0 及以上版本的腳本中可用。 此元素是一個(gè)內(nèi)嵌元素。 此元素不需要關(guān)閉標(biāo)簽。 This element does not fire the onfocus event when it receives the input focus, unless it has been associated with a MAP element. The following image and video file formats are supported as of Internet Explorer 5.
When using the IMG element to display a static image, specify the URL of the image file with the SRC attribute. When using the IMG element to display a video clip or virtual reality modeling language (VRML) world, specify the URL with the DYNSRC attribute. The img element is available in HTML as of Internet Explorer 3.0, and in script as of Internet Explorer 4.0. This element is an inline element. This element does not require a closing tag. 示例代碼<img src="../images/html_tutorials/blabla_logo.gif"> 另見 |
|