<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>小米案例</title>
<style>
div{
width: 254px;
height: 132px;
position: relative;
border-radius: 7px;
overflow: hidden;
}
div:hover::after{
content: "";
position: absolute;
top: 0;
left: 0;
border: 20px solid rgba(255,255,0,.5);
width: 100%;
height: 100%;
box-sizing: border-box; /*不撑开盒子div*/
}
</style>
</head>
<body>
<div><img src="icon3.png" alt=""></div>
</body>
</html>
006小米图片案例
最新推荐文章于 2022-02-18 22:39:49 发布