<div class="hdr-me">Me
<span class="mearrow"></span>
</div>
css
.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样式也显示,两种形状都在悬停后显示