From 5b1955ced7426d5730befa8422ac769dedaa9c38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=9F=E9=85=8C=20=E9=B5=AC=E5=85=84?= Date: Sat, 4 Jun 2016 13:09:39 +0800 Subject: [PATCH] firefox does not support backgroundPositionY --- botanjs/src/Astro/Blog/Layout/MainFrame.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/botanjs/src/Astro/Blog/Layout/MainFrame.js b/botanjs/src/Astro/Blog/Layout/MainFrame.js index 33c1881..9439346 100644 --- a/botanjs/src/Astro/Blog/Layout/MainFrame.js +++ b/botanjs/src/Astro/Blog/Layout/MainFrame.js @@ -240,7 +240,7 @@ , function() { var p = wsupp.scrollTop / ( wsupp.scrollHeight - wsupp.clientHeight ); - bWrapper.style.backgroundPositionY = ( p * 100 ) + "%"; + bWrapper.style.backgroundPosition = "50% " + ( p * 100 ) + "%"; } , 15 );