CSS使用边框来实现三道杠效果

时间:4年前   阅读:7490

三道杠可以使用边框来实现,上面两道杠使用上边框的double样式,下面一道杠使用下边框的solid样式

<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
<style>
.box{
  color: red;
  width: 60px;
  height: 10px;
  border-top: 30px double;
  border-bottom: 10px solid;
    transition: color 0.5s;
}
  .box:hover{
    color:pink;
  }
</style>
</head>
<body>
<div class="box"></div>
</body>
</html>

本站声明:网站内容来源于网络,如有侵权,请联系我们https://www.qiquanji.com,我们将及时处理。

微信扫码关注

更新实时通知

上一篇:期权为什么会被多空双杀?

下一篇:CSS white-space 属性

网友评论

请先 登录 再评论,若不是会员请先 注册