跳转到内容

Template:Tip/styles.css

轻之舟百科,让知识轻装启航
.tip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black;
}
.tip .tiptext {
  visibility: hidden;
  width: 120px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  top: -5px;
  left: 110%;
  opacity: 0;
  transition: opacity 1s;
}
.tip .tiptext::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent black transparent transparent;
}
.tip:hover .tiptext {
  visibility: visible;
  opacity: 1;
}