HTML & lt; img & gt; tags Create Image ing, img Image

Source: Internet
Author: User

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 )......)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.