一、overflow滚动条美化
.right-box::-webkit-scrollbar-track {
background-color: #414541;
}
.right-box::-webkit-scrollbar {
width: 8px;
}
.right-box::-webkit-scrollbar-thumb {
background-color: #ec5729;
border-radius: 10px;
}
二、全面屏无滚动条(适合登录页面与后台管理界面)
body,html{
height: 100%;
width:100%;
margin:0 0 0 0;
overflow:hidden hidden;
}
body{
background-image: url("../../static/admin/public/images/login_bg.jpg");
background-size: 100% 100%;
background-repeat: no-repeat;
}
三、图片样式美化
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
.img1 {
-webkit-filter: grayscale(100%);
filter: grayscale(100%);
}
.img2 {
filter: grayscale(50%);
}
.img3{
-webkit-filter: grayscale(100%) opacity(40%);
}
.img4{
filter: sepia(50%);
}
.img5{
filter: saturate(200%);
}
.img6{
box-shadow: 10px 10px 5px grey;
border-radius: 50%;
filter: blur(0px) ;
transition: all 2s linear;
}
.img6:hover{
box-shadow: 10px 10px 5px grey;
border-radius: 50%;
transition: all 2s linear;
filter: blur(5px);
transform: rotate(360deg);
}
.img6:{
transition: all 2s linear;
filter: blur(5px);
transform: rotate(360deg);
}
.img7{
filter: hue-rotate(180deg);
}
.img7:hover{
transition-duration: 2s;
filter: hue-rotate(0deg);
}
</style>
</head>
<body>
<img class="img1" src="pic.png" alt=""><br>
<img class="img2" src="pic.png" alt=""><br>
<img class="img3" src="pic.png" alt=""><br>
<img class="img4" src="pic.png" alt=""><br>
<img class="img5" src="pic.png" alt=""><br>
<img class="img6" src="fang.png" alt=""><br><br><br>
<img class="img7" src="pic.png" alt=""><br>
</body>
</html>
四、字体美化
a{
text-decoration: none;
}
.fonts{
font-family: "等线 Light";
font-weight: bold;
color: #d34428;
line-height: 30px;
text-align: center;
text-indent:2em;
-webkit-text-stroke: 2px black;
}
五、玻璃拟态效果
https://www.fly63.com/tool/glassmorphism/
https://neumorphism.io/
https://glassgenerator.netlify.app/
六、网页一键变灰
<style>
html{filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=1);-webkit-filter: grayscale(100%);}
</style>