Php 为什么我的背景图像在不同的屏幕尺寸上不断变化?

Php 为什么我的背景图像在不同的屏幕尺寸上不断变化?,php,css,Php,Css,我的网站的背景图像在调整页面大小时不断变化。我似乎不明白它为什么这样做。这是我的密码: header { background-image: url('../img/header-bg.jpg'); background-repeat: no-repeat; background-attachment: scroll; background-position: center center; -webkit-background-size: cover; -moz-back

我的网站的背景图像在调整页面大小时不断变化。我似乎不明白它为什么这样做。这是我的密码:

header {
  background-image: url('../img/header-bg.jpg');
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-position: center center;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  background-size: cover;
  -o-background-size: cover;
  text-align: center;
  color: white;
}

如果您的css上有任何媒体查询?请检查元素以查看是什么导致图像发生更改。如果css上有任何媒体查询,请创建工作代码的代码段?请检查元素以查看是什么导致图像更改。请创建工作代码的代码段