CSS 盒子边框经过效果
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>表格效果</title>
<style>
ul li {
position: relative;
list-style: none;
float: left;
width: 150px;
height: 200px;
border: 1px solid black;
margin-left: -1px;
}
ul li:hover {
z-index: 1;
position: relative;
border: 1px solid rgb(80, 250, 103);
}
</style>
</head>
<body>
<ul>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li>5</li>
</ul>
</body>
</html>