【问题标题】: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 backgroundtotal-wrapper backgroundlightbox-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>
    

    【讨论】:

      【解决方案2】:

      如果您想将身体的背景更改为图像,这将是最好的方法。将&lt;body&gt; 更改为:

      <body background="image.jpg">
      

      教程来自:http://www.w3schools.com/tags/att_body_background.asp

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2012-05-08
        • 2013-02-02
        • 2019-11-30
        • 2015-07-05
        相关资源
        最近更新 更多