[英]Events in the corners with border-radius
如何防止事件在border-radius
(白色边角)设置的border-radius
外的边角触发?
<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创建一个圆;-)
例子..
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.