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
Preface Ordinary users define crontab scheduled t...
During my internship in my senior year, I encount...
Table of contents Configure node.js+nvm+npm npm s...
Preface In the daily development or maintenance o...
Basic Concepts Absolute positioning: An element b...
The hyperlink <a> tag represents a link poin...
The file server is one of the most commonly used ...
I reinstalled the system some time ago, but I did...
Table of contents Preface 1. Configure gzip compr...
Table of contents Technology Stack Effect analyze...
Table of contents Introduction to Arrays Array li...
Download tutorial of mysql-connector-java.jar pac...
Table of contents 1. Filter, map, and reduce proc...
Table of contents Shallow copy Deep Copy Replenis...
This article example shares the specific code of ...