<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<style>
.out {
border: 2px solid #a1a1a1;
width: 100px;
height: 100px;
border-radius: 10px;
}
.out:hover{
background-color: #269abc;
}
.inner{
width: 100px;
height: 100px;
border: 1px solid #a1a1a1;
border-radius: 50%;
overflow: hidden;
}
.inner:hover{
background-color: red;
}
img {
width: 120%;
position: relative;
left: -10%;
top: -10%;
}
img:hover{
filter: invert(0%);
-webkit-filter:invert(90%);
}
</style>
</head>
<body>
<div class="out">
<div class="inner">
<img src="ajax.jpg">
</div>
</div>
</body>
</html>
图像反白显示
最新推荐文章于 2024-06-22 12:28:02 发布