首页 > 分享 > 给你的博客底部添加一排宠物

给你的博客底部添加一排宠物

此内容根据文章生成,并经过人工审核,仅用于文章内容的解释与总结

投诉

效果

底部图片

教程

找到主题 themes/solitude/layout/includes/footer.pug 新增pug

pug

1
2
3
4
5
6
7
8
9

div#footer-animal
.animal-wall
img.animal.entered.loaded(
src="https://p.qjqq.cn/cover/202410191400045.png"
onerror="this.onerror=null;this.src='/img/404.jpg';"
data-lazy-src="https://p.qjqq.cn/cover/202410191400045.png"
alt="动物"
data-ll-status="loaded"
)

在自定义css文件里新增css

css

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

#footer-animal {
position: relative;
width: 100%;
}

#footer-animal .animal-wall {
position: absolute;
bottom: 0;
width: 100%;
height: 36px;
max-width: none;
background: #bcb0a4 url(https://p.qjqq.cn/cover/202410191400532.png/color) repeat center;
background-size: auto 100%;
box-shadow: 0 4px 7px rgba(0,0,0,.15);
}

@media screen and (max-width: 1023px) {
#footer-animal .animal-wall {
height:4vw
}
}

#footer-animal img.animal {
position: relative;
max-width: min(974px,100vw);
margin: 0 auto;
display: block;
}

#footer-bar {
margin-top: 0 !important;
}

最后一键三连结束战斗!

青桔气球

分享网络安全与科技生活

本文是原创文章,采用CC BY-NC-SA 4.0协议,完整转载请注明来自青桔气球

相关知识

给你的博客添加一个宠物挂件
给你的wordpress博客领养几只宠物 打发时间专用
hexo个人博客添加宠物/鼠标点击效果/博客管理
WordPress 添加个性化的博客宠物(汉纸篇)
WordPress 添加个性化的博客宠物(妹纸篇)
给WordPress博客添加浮动宠物
WordPress优化:为博客边栏添加小宠物
给你的博客领养一个宠物吧(2)【汇编】
【全网最全的博客美化系列教程】03.给博客添加一只萌萌哒的小仓鼠
为博客添加Gadgets Hamster仓鼠宠物代码

网址: 给你的博客底部添加一排宠物 https://m.mcbbbk.com/newsview815338.html

所属分类:萌宠日常
上一篇: 宠物狗咬青没出血
下一篇: 《QQ飞车》手游青鸾属性怎样 宠