具有边界半径的角中的事件

Events in the corners with border-radius

本文关键字:事件 边界      更新时间:2023-09-26

如何使事件在border-radius(白色角)设置的边界之外的角落中发射?

JSFiddle例子

<div class="circle">
   <a href="#"><span></span></a>
</div>
.circle {
    border-radius:100px;
}
span {
    display:block;
    background:#000;
    width:200px;
    height:400px;
    border-radius:100px;
}
$(".circle").click(function() {
   alert("GOD! WHY I'AM WORK ON WHITE CORNERS!?! KILL ME PLEASE!");
});

使用html标签map和erea创建圆圈;-)