在此處輸入代碼背景轉換不工作,沒有到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