浏览器壁纸设置

在这里插入图片描述浏览器环境:火狐浏览器
方案一:浏览器插件实现
会在所有新打开的页面后加入背景,可以考虑将背景图片虚化、降低透明度
1.在设置中找到<扩展与主题>,搜索并安装插件Stylus
2.点击新建样式,点击URL
新建样式
3.进入编辑器并加入代码
在这里插入图片描述

/* ==UserStyle==
@name           2022/10/22 11:06:17
@namespace      github.com/openstyles/stylus
@version        1.0.0
@description    A new userstyle
@author         Me
==/UserStyle== */

body
{
    background:url(https://ts1.cn.mm.bing.net/th/id/R-C.63d6fac8b91d160df4508a1a8e2082e8?rik=j7QmRfzJSCca1A&riu=http%3a%2f%2fwww.pp3.cn%2fuploads%2f20120417lw%2f35.jpg&ehk=GcoGlWDkFsEcegjmQLMd147%2fiJq8Gmvd9daRCj8Kp8k%3d&risl=&pid=ImgRaw&r=0);
    //将上面的网址改为图片网址(示例图片为必应图片网址)
    background-size:100%;
    background-repeat: no-repeat;
}
body #container
{
	background-color:black;
	opacity: 0.2;
	width:500px;   
	height: 250px;   
	margin:0 auto;
	margin-top:200px;
        border-radius:20px;
}
 
body #header
{
  height:160px;	
  text-align:center;
  margin:0px;
}
 
body #header-content
{
	color:white;
	height:75px;
	
}
 
body #header-content a
{
	font-family: "楷体";
	color:white;
	text-decoration:none;
	font-size:22px;
	letter-spacing:10px;
}
 
body #header-content a:hover
{
	text-decoration: underline;
}
 
body #header-content p
{
	font-size:15px;
}
 
body #content
{
    height:140px;	
    margin:0px;
    text-align: center;
    vertical-align: middle;
}
 
body #content #main-content a
{
	
	color:white;
	text-decoration: none;
}
 
body #content #main-content a:hover
{
	text-decoration: underline;
	color:white;
}
 
body #footer hr2
{
	margin-top:300px;
}
 
body #footer #footer-content button
{
	border:0;
	background-color:#000000;
	font-size:20px;
	color:white;
	border-radius: 10px;
	float: right;
	margin-right: 25px;
}

方案二:修改浏览器设置
1.在地址栏进输入about:profiles 回车访问。打开默认配置文件的根目录。
在这里插入图片描述2.在这个目录下新建一个名为 chrome 的文件夹
在这里插入图片描述

3.将背景图片放入新建的 chrome 文件夹中,并新建文本文件,重命名为 userContent.css
在这里插入图片描述4.修改 userContent.css 的内容并保存。注意这里面的 img.jpg 要替换成你的背景图片的文件名


```c
@-moz-document url(about:home), url(about:newtab), url(about:privatebrowsing) {
    .top-site-button .title, .context-menu-button {
        color: #fff !important ;
        text-shadow: 2px 2px 2px #222 !important ;
    }
    
    .logo-and-wordmark {
        display: none !important;
    }

    body {
        --newtab-topsites-outer-card-hover:rgba(255, 255, 255, 0.4) !important;
        --newtab-element-hover-color: rgba(255, 255, 255, 0.3) !important;
    }

    body::before {
        content: "" ;
        z-index: -1 ;
        position: fixed ;
        top: 0 ;
        left: 0 ;
        background:radial-gradient(rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.75)), no-repeat url(img.jpg) center ;
        background-size: cover ;
        width: 100vw ;
        height: 100vh ;
    }
}

5.访问about:config,搜索toolkit.legacyUserProfileCustomizations.stylesheets并将其改为 true
在这里插入图片描述

6.重启firefox即可。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值