<div class="hdr-me">Me
<span class="mearrow"></span>
</div>
.hdr-me {
width: 33px;height: 28px;float: left;
-webkit-transition: all 0.2s cubic-bezier(0.2, 0.47, 0.435, 0.97);
-moz-transition: all 0.2s cubic-bezier(0.2, 0.47, 0.435, 0.97);
-o-transition: all 0.2s cubic-bezier(0.2, 0.47, 0.435, 0.97);
-ms-transition: all 0.2s cubic-bezier(0.2, 0.47, 0.435, 0.97);
transition-transition:all 0.2s cubic-bezier(0.2, 0.47, 0.435, 0.97);
margin:9px 5px 5px 5px !important;
padding:12px 0px 0px 7px;
background:$blueDark;
border-radius: 60px;
-webkit-border-radius: 60px;
-moz-border-radius: 60px;
color:$white;
cursor:pointer;
}
.hdr-nav-rt .hdr-me .mearrow{
float: left;
margin-left: 21px;
border-left: 3px solid transparent;
border-right: 3px solid transparent;
border-top: 3px solid $white;
margin-top: -6px;
}
.hdr-nav-rt .hdr-me:hover {
width: 33px;height: 28px;float: left;
margin:9px 5px 5px 5px !important;
padding:12px 0px 0px 7px;
background:$grayDark;
border-radius: 60px;
-webkit-border-radius: 60px;
-moz-border-radius: 60px;
color:$white;
cursor:pointer;
}
我也需要改變mearrow懸停 像
.hdr-nav-rt .hdr-me:hover .mearrow{
float:left;
margin-left:21px;
border-left:3px solid transparent;
border-right:3px solid transparent;
**border-bottom:3px** solid #fff;
margin-top:-6px;
}
只使用CSS
編輯
是有可能無論mearrow風格也顯示,無論是形狀顯示後懸停
你應該嘗試一下,看看。 – Musa
使用':hover'僞選擇,就像你的例子一樣。 – Polyov
你已經張貼什麼應該工作 –