Rumah > Artikel > hujung hadapan web > css当点击容器内的元素时,如何绑定到容器的点击事件_html/css_WEB-ITnose
<div class="btn-today glow three-btn"> <span class="rb">本 <span class="rt">ben</span> </span></div>
.btn-today:active{ background: rgb(255,255,255);}
应该是 .rb:active{
background: rgb(255,255,255);
}吧
.btn-tody>span{
pointer-events: none;
}
.btn-tody>span{
pointer-events: none;
}