简体   繁体   English

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

[英]Events in the corners with border-radius

How do I keep events from firing in the corners outside of the border set by border-radius (white corners)? 如何防止事件在border-radius (白色边角)设置的border-radius外的边角触发?

JSFiddle example 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!");
});

Use html tags map and erea to create a circle ;-) 使用html标签map和erea创建一个圆;-)

example comming up .. 例子..

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM