我的网站有完美的页面背景图像.我从css技巧中抓取了它的代码.
如果您访问我的网站,您可以看到它的实际效果.
我想知道的是,有一种方法,一旦你滚动一定长度,我可以将此图像更改为不同的图像吗?
我的目标是拥有相同的图像,但是从狗嘴里出来的是一个气泡,我猜这两个图像会做到这一点.
这只能在CSS中做吗??????
这是我目前使用的代码.
html {
background: url(http://robt.info/wp-content/uploads/2013/06/funny-kids-comic-animals.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
Run Code Online (Sandbox Code Playgroud)