在此处输入代码背景转换不工作,没有到IMG公司CSS
嗨,大家好,我想平稳过渡,有0.4 5S,从BG没有一个背景图片得好,应该有办法。 ..
我尝试以下操作:
`
>.content { /*class in div id topcontent */
>>position: relative;
>>padding-top: 1150px;
>>width: 900px;
>>margin: 0px auto 0px auto;
>>z-index:1;
>>-webkit-transition: all 0.9s ease;
>>transition: all 0.9s ease;
>}
>.gobg { /* the bg class */
>>background: url(../images/gradientwhitelow.png) center repeat-y;
>>-webkit-transition: all 0.9s ease;
>>transition: all 0.9s ease;
>}
and js
><script>
>>if ($(window).scrollTop() > 690){
$("#topcontent").toggleClass("gobg", true);
>>}</script>
`
任何提示?
谢谢!
我纠正了JS,拨错码
什么是在您的CSS代码中的”>>“?我们可以有一些HTML吗? – davidpauljunior