开发者

Does an HTML image map scale up/down with the image?

开发者 https://www.devze.com 2023-03-29 08:14 出处:网络
I know that if I have an image, I can put \"hotlinks\" on it using HTML image maps. However, if I re-size the image (e.g., <img src=\"my_image.jpg\" width=\"20\" h开发者_JAVA技巧eight=\"40\" />

I know that if I have an image, I can put "hotlinks" on it using HTML image maps. However, if I re-size the image (e.g., <img src="my_image.jpg" width="20" h开发者_JAVA技巧eight="40" /> becomes <img src="my_image.jpg" width="10" height="30" />), will the image map scale with the changed dimensions?


As far as I know the image-maps work with absolute positions based in your image, so if the first position was 20x40, when you rescale your image, that hot-spot will be gone.

0

精彩评论

暂无评论...
验证码 换一张
取 消