html - 如何在 CSS 中更改图像背景位置?

标签 html css background

我已经给出了背景位置:固定但图像没有正确显示我想向访问者展示的位置。反正有没有改变立场。我正在使用博客。这是 body 标签的代码

body {
    background: url("http://i.imgur.com/8x7qciX.jpg") no-repeat fixed center top #ffffff;
    color: #666666;
    font: 14px Arimo;
    padding: 0;
}

我希望汽车稍微靠上一点,这样我就可以盖上盖子并正确跟踪。请帮忙

最佳答案

在 css 中你可以这样做:

body{
  background-position: 10px 20px;
}

而不是使用中心顶部。

关于html - 如何在 CSS 中更改图像背景位置?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26304639/

相关文章:

css - 固定页眉

css - 带有 ng-model 范围变量的 AngularJS ng-style

javascript - 在 DOM 上使用 vanilla js 设置 css 样式时,它是否总是内联样式?

html - 显示 : Table-cell with set width/cells on multiple lines

html - 100% height child div in parent wrap div

html - 将 2 种不同的字体大小垂直对齐到底部

css - 通过 "hovering"在 css 中的 div 上更改背景图像

ios - 应用程序在后台时向服务器发送纬度和经度

image - 黑莓中图像的设置

Delphi 的 HTML 敏捷包