……

博客美化,博客背景图片设置

首先在博客相册里添加一张图片,

接着按F12打开网站检测工具,查看下上传的图片路径,复制路径随后在页面定制CSS栏里添加样式既OK

老铁的背景图代码如下

body{
cursor: url(https://files-cdn.cnblogs.com/files/miluluyo/cursora.ico),auto;
background:url("");
background-color:Azure;
}

.div_1{
background: url(https://images.cnblogs.com/cnblogs_com/panghu123/1996195/o_210705115949o_20051406472117.jpg) center center / cover no-repeat #222;
    overflow: hidden;
    width: 100%;
    height:40vh;
    max-height: 40vh;
    box-shadow: 0 1px 2px rgb(150 150 150 / 70%);
    text-align: center;
    display: table;
    overflow-y: scroll;
    opacity:0.75;

}

 博客页首代码栏添加如下html

<div class="div_1" id="div_1"></div>

 不谢

posted @ 2021-08-17 15:40  蟾宝  阅读(112)  评论(0编辑  收藏  举报