📜  文本装饰 css 过渡 - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:45.107000             🧑  作者: Mango

代码示例1
.un {
  display: inline-block;
}

.un::after {
  content: '';
  width: 0px;
  height: 1px;
  display: block;
  background: black;
  transition: 300ms;
}

.un:hover::after {
  width: 100%;
}