欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

css tooplis

程序员文章站 2022-06-13 23:02:53
...
<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>