开发者

Using Image Map within a div with CSS rules

开发者 https://www.devze.com 2023-02-06 11:41 出处:网络
I have created a div with a image I\'m using with Image Map. <div id=\"image\"> <img src=\"image.png\" usemap=\"imag开发者_高级运维emap\">

I have created a div with a image I'm using with Image Map.

<div id="image"> 
<img src="image.png" usemap="imag开发者_高级运维emap"> 
</div>

Css:

#image {   float: right; }

But when I use the CSS with the Image Map, it doesn't work. What is the problem?


Here is a decent Tutorial on image maps hope this can help explain the process a little better.


I solved the problem by using

<div id="image" align="right"> 
<img src="image.png" usemap="imagemap"> 
</div>

and dropped the CSS.


Pretty decent Tutorial here, although the mapping is limited to rectangles.

0

精彩评论

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