HTML tags Create Image ing, img Image
The following code at the front-end is to create an image ing on the image. I sorted it out and made a note. I hope it will help my later friends!
<Map name = "planetmap"> <area shape = "rect" coords = "0, 0, 82,126 "alt =" Sun "href =" sun.htm "> <area shape =" circle "coords =" 90,58, 3 "alt =" Mercury "href =" mercur.htm "> <area shape =" poly "coords =", "alt =" Venus "href =" venus.htm ">
</Map>
In this section of code, shape refers to the shape of the click area, and coords refers to the coordinates of the linked area in the image (in pixels ).
Shape
1. rect rectangle
2. circle
3. Polygon
Coords
1. ing: the coordinates of vertices in the upper left corner are (x1, y1), and those in the lower right corner are (x2, y2)
2. Circle: (the center coordinate is (X1, y1), and the radius is r)
3. Polygon: (the coordinates of each vertex are (x1, y1), (x2, y2), and (x3, y3 )......)