[英]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.