---
title: "css tooplis"
author: "sgq0085"
date: "2018-02-06T10:31:15Z"
tags: []
categories: ["Web前端"]
slug: "css-tooplis"
draft: false
lastmod: "2018-02-06T10:54:12Z"
id: 2410331
url: "https://sgq0085.iteye.com/blog/2410331"
---

```
<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>
```