Map tags must appear in pairs, i.e. <map> ....</map> At the same time, map must be used in conjunction with area. The usermap attribute value in the img tag must be exactly the same as the id and name values in the map tag. area tag: defines the click area of the image. area is a single tag, not a pair. property: accesskey shortcut key alt Image hint text coords defines the coordinates of the graphic and click area href link address nohref is the area that can be excluded when the image is clicked. When there is no href, nohref needs to be used shape The shape of the clickable area tabindex tab key traversal target link target Code example: Copy code The code is as follows:<img src="images/logo.gif" usermap="#map"/> <map id="map" name="map"> <area shape="rect" coords="a,b,c,d" target="_blank" href=""/> <!-- a, b, c, d are the coordinate values of the upper left corner and lower right corner of the rectangle respectively!> <area shape="circle" coords="a,b" target="_blank" href="" /> <!-- a, b are the coordinate values of the center of the circle!> <area shape="poly" coords="a,b..." target="_blank" href="" /> <!-- a, b are the coordinate values of each fixed point of the polygon!> </map> |
<<: Flash embedded in web pages and IE, FF, Maxthon compatibility issues
>>: Detailed steps for IDEA to integrate docker to achieve remote deployment
Table of contents Solution Analysis slice Resume ...
Anti-shake: Prevent repeated clicks from triggeri...
Compared with fdisk, parted is less used and is m...
Verification environment: [root@~~/]# rpm -qa | g...
This article shares the specific code of js to ac...
As shown below: CSS CodeCopy content to clipboard...
I searched online and found that many interviews ...
<br />In the first section of this series, w...
Web design is an emerging marginal industry that c...
After setting textarea input in Element UI to aut...
<br />In the field of network design, resear...
Preface In actual projects, the most common proce...
Table of contents specification a. The page file ...
Table of contents 1.Json string 1.1Json Syntax 1....
Table of contents Why is addEventListener needed?...