<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
span {
position: relative;
color: red;
}
.borderBottom:after {
content: '';
width: 20px;
position: absolute;
margin: 0 auto;
height: 2px;
background-color: lightblue;
bottom: 0;
left: 0;
right: 0;
}
</style>
</head>
<body>
<span class="borderBottom">111</span>
</body>
</html>
tab或者导航实现css底边框
最新推荐文章于 2022-05-23 16:47:04 发布