Need to stylize area tag inside map

后端 未结 1 355
孤城傲影
孤城傲影 2020-12-12 05:32

I have image and areas located inside


    

        
相关标签:
1条回答
  • 2020-12-12 05:50

    Isn't possible with css to change assign style to area directly.
    Another way is to use SVG file

    Here's an example I whipped up: JSFIDDLE.

    in the example you have this css that can make a style to your svg:

    polygon.hoverable
    {
        fill: transparent;
        stroke:gray; /* Replace with none if you like */
        stroke-width: 4;
        cursor: pointer;
    }
    
    polygon.hoverable:hover
    {
     stroke:black;   
    }
    

    Other way is to use some plugin in javascript/jQuery like this:

    ImageMapster

    0 讨论(0)
提交回复
热议问题