【问题标题】:Change background in custom blogger template that hasn't body.backround在没有 body.background 的自定义博客模板中更改背景
【发布时间】:2014-07-29 00:27:03
【问题描述】:
我在博客 (http://nethoroskop.blogspot.com) 上有自定义 Galauness 模板,但我想上传我自己的图片...你能告诉我怎么做吗?在 html 代码中没有
body{ background
还有很多其他的backgrounds(比如post background、total-wrapper background、lightbox-container-image-data-boxbackground等),但根本没有body.background!
【问题讨论】:
标签:
html
css
templates
background
blogger
【解决方案1】:
您需要找到并编辑此部分以添加您自己的背景图片:
body {
background: #ffffff;
background-image: url(http://i1273.photobucket.com/albums/y417/trynitezoo/winterpaper_zps5a2f39a3.jpg);
background-position: center;
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
width: 100%;
margin: 0;
}
或者您可以覆盖背景图像。您只需将以下代码复制并粘贴到 header 标记部分,并将 YOUR NEW IMAGE PATH 替换为您需要的图像 url:
<style>
body {
background-image: url('http://YOUR NEW IMAGE PATH') !important;
}
</style>