简体   繁体   中英

`background-size:100% or cover` causes javascript to slow

In FF 17 :

body{
  background:  url('foo/images/flowers.jpg');
  background-size:  100%;
  background-attachment:  fixed;
}

causes the page to move slow, this means the animation and even the mouse pointer trailing across the screen.

Once I remove the background image all is fine.

To troubleshoot I removed the Base64 representation of the image and linked directly to the image as shown above.

I can continue to isolate in this manner, but I'm wondering if this is a known issue.


Isolating further it is this property causing the issue.

  background-size:  100%;

这似乎是background-size:100% or cover的问题background-size:100% or cover已在新FF修复的background-size:100% or cover

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM