宝塔登录页面Bing壁纸背景图

1.找到

# 
#
/www/server/panel/BTPanel/templates/default/login.html

2.开头位置添加代码

https://www.baidu.com/link?url=a3f48d30fc293c5e471ef23de092fddc99fdd688681eb6e429c98cc7e6944c7d3749a1ff2ec7a79b7fb718896f

可以替换成自己喜欢的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://www.baidu.com/link?url=a3f48d30fc293c5e471ef23de092fddc99fdd688681eb6e429c98cc7e6944c7d3749a1ff2ec7a79b7fb718896f)!important;
    }
    .main .login{
        background-color: rgba(255, 255, 255, 0.8)!important;
    }
</style>
##########bing壁纸##############################

自适应

 
<style>
body{
    background:url(https://www.baidu.com/link?url=a3f48d30fc293c5e471ef23de092fddc99fdd688681eb6e429c98cc7e6944c7d3749a1ff2ec7a79b7fb718896f);  
    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.重启宝塔

一个有关“宝塔登录页面Bing壁纸背景图”的想法

评论功能被关闭。