我在博主 ( http://nethoroskop.blogspot.com ) 上有自定义 Galauness 模板,但我想上传我自己的图像...你能告诉我怎么做吗?在 html 代码中没有
body{ background
还有很多其他背景
(例如post背景
、total-wrapper背景
、lightbox-container-image- data-box
background
等),但根本不是 body.background
!
最佳答案
您需要找到并编辑此部分以添加您自己的背景图像:
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 标记部分,并将“您的新图像路径”替换为您需要的图像网址:
<style>
body {
background-image: url('http://YOUR NEW IMAGE PATH') !important;
}
</style>
关于html - 更改没有 body.background 的自定义博主模板中的背景,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25006452/