Accurately detect mouseover event for a div with rounded corners

前端 未结 5 608
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-06 08:42

I am trying to detect a mouseover event on a circle. I define the circle div like this:

.circle {
  width: 80px;
  height: 80px;
  -moz-border-radius: 40px;
  -         


        
5条回答
  •  走了就别回头了
    2021-02-06 09:10

    You can probably do something like that with an old-fashioned image map - there's a circular area.
    In fact, this plugin can help you: jQuery MapHilight Plugin

提交回复
热议问题