Balise d'image :
<img src="/static/imghw/default1.png" data-src="http://2d.zol-img.com.cn/product/95_940x705/893/ce14aSRNzVhz2.jpg" class="lazy" alt="Apprentissage HTML (3) - balises d'image" >
Attributs :
align : Définit la disposition des images
border : Utilisé pour définir la bordure de l'image
src : Connecter un fichier
[code]<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html > <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>image</title> <meta name="author" content="sync" /> </head> <body> <!-- 演示图片标签 --> <img src="/static/imghw/default1.png" data-src="http://2d.zol-img.com.cn/product/95_940x705/893/ce14aSRNzVhz2.jpg" class="lazy" height="350" style="max-width:90%" border="10" alt="美丽的风景" /> </body> </html>
Carte d'image :
<map>
[code]<img src="/static/imghw/default1.png" data-src="1.jpg" class="lazy" alt="图片说明文字" usemap="#Map"> <map > <area shape="rect" coords="50,59,116,104" href="a.html"> <area shape="circle" coords="118,203,40" href="b.html"> </map>
Ce qui précède est le contenu de l'apprentissage HTML (3) - balise d'image Pour plus de contenu connexe, veuillez faire attention au site Web PHP chinois (www.php.cn) !