HTML图像
- 插入图象
<!--图像-->
<!--静态-->
<img src="~/Content/tree.png" alt="Tree"/> <br/>
<!--动态-->
<img src="~/Content/Eggs.gif" /> <br/>
<!--互联网-->
<img src="https://106c4.wpc.azureedge.net/80106C4/Gallery-Prod/cdn/2015-02-24/prod20150401-microsoft-windowsazure-gallery/Microsoft.WebSite.0.4.0/Icons/Medium.png" /> <br/>
<!--静态-->
<img src="~/Content/tree.png" alt="Tree"/> <br/>
<!--动态-->
<img src="~/Content/Eggs.gif" /> <br/>
<!--互联网-->
<img src="https://106c4.wpc.azureedge.net/80106C4/Gallery-Prod/cdn/2015-02-24/prod20150401-microsoft-windowsazure-gallery/Microsoft.WebSite.0.4.0/Icons/Medium.png" /> <br/>
- 背景图片
<!--添加背景图片-->
<body background="../../Content/BackGround.png">
<body background="../../Content/BackGround.png">
</body>
- 排列图片
<!--排列图像-->
<p> The <img src="../../Content/Eggs.gif" width="50" height="50" alt="Oh NO!!!" /> Default</p>
<p>The <img src="../../Content/Eggs.gif" width="50" height="50" align="bottom" /> Bottom </p>
<p>The <img src="../../Content/Eggs.gif" width="50" height="50" align="middle" /> Middle</p>
<p>The <img src="../../Content/Eggs.gif" width="50" height="50" align="top" />Top</p>
<p>The <img src="../../Content/Eggs.gif" width="50" height="50" align="bottom" /> Bottom </p>
<p>The <img src="../../Content/Eggs.gif" width="50" height="50" align="middle" /> Middle</p>
<p>The <img src="../../Content/Eggs.gif" width="50" height="50" align="top" />Top</p>
- 浮动图像
<!--浮动图像-->
<p>The <img src="../../Content/Eggs.gif" width="50" height="50" align="right" />Right</p>
<p>The <img src="../../Content/Eggs.gif" width="50" height="50" align="left" /> Left</p>
<p>The <img src="../../Content/Eggs.gif" width="50" height="50" align="right" />Right</p>
<p>The <img src="../../Content/Eggs.gif" width="50" height="50" align="left" /> Left</p>
- 调整图像尺寸
<!--调整图像尺寸-->
<img src="../../Content/Eggs.gif" width="50" height="50" /> <br/>
<img src="../../Content/Eggs.gif" width="100" height="100" /> <br/>
<img src="../../Content/Eggs.gif" width="200" height="200" /><br/>
<img src="../../Content/Eggs.gif" width="100" height="100" /> <br/>
<img src="../../Content/Eggs.gif" width="200" height="200" /><br/>
- 为图片添加替换文本
<!--图像无法显示是添加替换文本-->
<img src="../../Content/Eggs.gif" width="50" height="50" alt="Eggs run"/><br/>
<img src="../../Content/Eggss.gif" width="50" height="50" alt="Eggs run" /><br />
<img src="../../Content/Eggs.gif" width="50" height="50" alt="Eggs run"/><br/>
<img src="../../Content/Eggss.gif" width="50" height="50" alt="Eggs run" /><br />
- 制作图像链接
<a href="https://www.baidu.com"> <img src="../../Content/Du.png"> </a> <br>
- 创建图像映射
<img src="../../Content/Map/planetmap.png" border="1" usemap="#plante" alt="planets"/>
<map name="plante" id="plante">
<area shape="circle" coords="182,140,14" href="../../Example/venus.html" target="_blank" alt="Venus" />
<area shape="circle" coords="131,161,10" href="../../Example/mercur.html" target="_blank" alt="Mercur"/>
<area shape="rect" coords="0,0,110,260" href="../../Example/sun.html" target="_blank" alt="Sun" />
</map>
<map name="plante" id="plante">
<area shape="circle" coords="182,140,14" href="../../Example/venus.html" target="_blank" alt="Venus" />
<area shape="circle" coords="131,161,10" href="../../Example/mercur.html" target="_blank" alt="Mercur"/>
<area shape="rect" coords="0,0,110,260" href="../../Example/sun.html" target="_blank" alt="Sun" />
</map>