圖片元素
img元素
alt 圖片說明
map屬性(地圖)
子元素 area
左上角為原點(diǎn)
circle圓形
取點(diǎn):長寬(上左)即硼,半徑
rect矩形
取點(diǎn):左上角卓箫,右下角
poly多邊形
取點(diǎn):所有點(diǎn)
用name配合使用,usemap連接主地圖,用法和錨點(diǎn)一致
figure和元素
figcaption標(biāo)題
例子:
<figure>
<figcaption>
<h1>太陽系</h1>
</figcaption>
<img usemap="#slMpo" src="./img/solar.jpg" alt="太陽系">
</figure>
<map name="slMpo">
<area shape="circle" coords="362,202,50" alt="木星">
<area shape="rect" coords="762,192,846,231" alt="">
<area shape="poly" coords="260,370,288,325321,347,292,326" alt="">
</map>
掌握以上常用的就行