css tooplis

<html>
<style>
.tooltips{
position:relative;
width:62px;
height:32px;
line-height:32px;

text-align: center;
/* background: #FFFFFF; */
border-radius:4px;
border:1px solid rgba(0,0,0,0.20);
box-shadow: 0 1px 4px 0 rgba(0,0,0,0.20); 
}
.arrow{
  position:absolute;
  color: #FFFFFF;
  width: 0px;
  height:0px;
  line-height: 0px;
  border-width: 15px 13px 0;
  border-style: solid dashed dashed dashed;
  border-left-color: transparent;
  border-right-color: transparent;
  /*  bottom: -15px; */
  right: 30%;
}
.arrow-border{
  color: rgba(0,0,0,0.20); 
  bottom: -15px;
  right: 30%;
}
.arrow-bg{
  color: #FFFFFF;
  bottom: -14px;
  right: 30%;
}

</style>


<body>
<div class="tooltips">
content
  <div class="arrow arrow-border"></div>
  <div class="arrow arrow-bg"></div>
</div>

 
<body>
</html>

相关推荐