CSS 背景不合适/被截断
CSS background doesn't fit properly / is cut off
我遇到了后台突然断线的问题。之前在 chrome 上正常工作,但现在我在页面中间中断 (http://prntscr.com/kwsaxn)。
我的CSS代码:
html, body {
background: url(../images/background.jpg) no-repeat center fixed;
background-size: cover;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
}
在header中执行:
<link rel="stylesheet" href="css/style.css">
我似乎没有在网上找到任何解决方法,但也许它和我上一个问题一样简单,我只是遗漏了一些东西。
也许它在它结束的地方被调用是有原因的,但我以前就是这样,当它仍然有效时。
PS:我在 chrome 和我的 iphone safari 上测试了它。
谢谢:)
请给link网站或codepen编辑器
我遇到了后台突然断线的问题。之前在 chrome 上正常工作,但现在我在页面中间中断 (http://prntscr.com/kwsaxn)。
我的CSS代码:
html, body {
background: url(../images/background.jpg) no-repeat center fixed;
background-size: cover;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
}
在header中执行:
<link rel="stylesheet" href="css/style.css">
我似乎没有在网上找到任何解决方法,但也许它和我上一个问题一样简单,我只是遗漏了一些东西。
也许它在它结束的地方被调用是有原因的,但我以前就是这样,当它仍然有效时。
PS:我在 chrome 和我的 iphone safari 上测试了它。
谢谢:)
请给link网站或codepen编辑器