HTML img tag: defines an image to be introduced into a web page. It also has an interesting usemap attribute. Look at the 51ditu homepage, there is a map with a map of China in the middle. Right click and download to see that it is just an ordinary picture. But clicking on the provinces on the map can trigger different events (or open different links), which is very interesting. It turns out that the usemap attribute is used. Of course, a map tag must be defined. The entire code is as follows: ![]() Tip: You can modify some of the code before running For the meaning of several attributes of the area tag in the map tag, see: http://www.w3school.com.cn/tags/tag_area.asp Here we still note the shape attribute of area. The options are rectangle, circle and polygon. Pay special attention to the coords attribute, which must be used in conjunction with shape. The coordinates of the upper left corner of the image are "0,0". |
<<: Perfect solution to the problem that Navicat cannot connect after installing mysql in docker
>>: How to design and optimize MySQL indexes
Preface After a long time of reading various mate...
I believe that many partners who have just come i...
Event response refresh: refresh only when request...
<br />In the field of network design, resear...
1. Import the basic style of external CSS files U...
First, let’s take an example: There is a type fie...
1. Official website address The official website ...
This article shares the specific process of js ob...
Transactions in MySQL are automatically committed...
The origin of the problem The first time I paid a...
1. Basic Introduction of Linux Group In Linux, ev...
Set the background image for the table header. Yo...
Introducing the Geo module of Nginx The geo direc...
Table of contents Working principle: What does th...
Preface: Integer is one of the most commonly used...