因此,当单击“KH”徽标时,我有一个从左侧推出的菜单。当“KH”悬停在上面时,它会变成浅灰色。
一旦点击了“KH”并且用户移动了他们的鼠标,它就会回到黑色的活动状态。
有没有办法在菜单打开的整个过程中将“KH”保持在这种浅灰色,并且只有在用户关闭菜单后才返回黑色?
HTML:
<div class="logo"><button class="one toggle-menu menu-left push-body">KH</button></div>
CSS:
button.one {
border : 0px;
background: #f4f4f4;
font-family: "bebas-neue", sans-serif;
font-size: 3em;
color: #272727;
font-weight: 400;
padding-bottom: 15px;
letter-spacing: 1px;
text-decoration: none;
-webkit-transition: all 0.8s ease-in-out;
-moz-transition: all 0.8s ease-in-out;
-o-transition: all 0.8s ease-in-out;
transition: all 0.8s ease-in-out;
cursor: pointer;
}
button.one:active { color: #ccc; }
button.one:hover { color: #ccc; cursor: pointer; }
网站: http: //kaye.at/babyboom.php