html - 更改没有 body.background 的自定义博主模板中的背景

标签 html css templates background blogger

我在博主 ( 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/

相关文章:

html - Perl 模块 HTML::Template 可以使用 <TMPL_VAR NAME=...> 之外的其他语法吗?

django - 如何编写用于访问控制的 Django 模板标记?

c++ - 使用 C++ 模板时出现错误 C2955 和错误 C2244

javascript - 带有下拉菜单的响应式导航栏不起作用

php $_POST 输出错误

javascript - 将图像标题区域与图像对齐

css 类定义以 */html 开头

javascript - 这个 jQuery toggleClass 行为看起来很奇怪,我这样做正确吗?

javascript - 为什么我们不能打印包含 html 名称的变量?

css - 导航栏下拉 Bootstrap 不起作用