1.找到
# # /www/server/panel/BTPanel/templates/default/login.html
2.开头位置添加代码
https://bing.biturl.top/?resolution=1920&format=image&index=0&mkt=zh-CN
可以替换成自己喜欢的api图片地址如
www.sooele.com/bing/bing.php
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{g.title}}</title>
<link rel="shortcut icon" href="/static/favicon.ico" type="image/x-icon" />
##########bing壁纸##############################
<style>
body{
background-image: url(https://bing.biturl.top/?resolution=1920&format=image&index=0&mkt=zh-CN)!important;
}
.main .login{
background-color: rgba(255, 255, 255, 0.8)!important;
}
</style>
##########bing壁纸##############################
自适应
<style>
body{
background:url(https://bing.biturl.top/?resolution=1920&format=image&index=0&mkt=zh-CN);
filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale')";
-moz-background-size:100%;
background-size:100%;
}
.main .login{
background-color: rgba(255, 255, 255, 1)!important;
}
</style>
3.重启宝塔
谢谢分享,用上了
客气了