firefox does not support backgroundPositionY

This commit is contained in:
斟酌 鵬兄 2016-06-04 13:09:39 +08:00
parent bb9f8a87b3
commit 5b1955ced7

View File

@ -240,7 +240,7 @@
, function() , function()
{ {
var p = wsupp.scrollTop / ( wsupp.scrollHeight - wsupp.clientHeight ); var p = wsupp.scrollTop / ( wsupp.scrollHeight - wsupp.clientHeight );
bWrapper.style.backgroundPositionY = ( p * 100 ) + "%"; bWrapper.style.backgroundPosition = "50% " + ( p * 100 ) + "%";
} }
, 15 , 15
); );