performance - Firefox 中的渐变性能不佳

标签 performance firefox css gradient

我目前正在研究 css3 渐变背景,它在 Chrome 上运行良好,但在 Firefox 上运行糟糕。我注意到这是由于我的 css 中的 background-size 属性所致。有什么方法可以制作完全相同的背景,但方法不同?

body {
    background: -webkit-linear-gradient(45deg,  #cccccc 0%, #cccccc 25%, #bbbbbb 25%, #bbbbbb 50%, #cccccc 50%, #cccccc 75%, #bbbbbb 75%);
    background:    -moz-linear-gradient(45deg,  #cccccc 0%, #cccccc 25%, #bbbbbb 25%, #bbbbbb 50%, #cccccc 50%, #cccccc 75%, #bbbbbb 75%);
    background-size: 30px 30px:
}

最佳答案

bug657603

事实证明这是 mozilla firefox 上的一个错误...在背景上使用低分辨率渐变图案时性能不佳,正如 Jonah Bishop 发布的那样

关于performance - Firefox 中的渐变性能不佳,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12180992/

相关文章:

php - 网站图标定制或动画

linux - OpenMP: "implicit barrier"中有 20% 的时间?

sql - 查询postgres中的文本数组

javascript - 系统JS : WARNING error running cfx run once updated to Firefox v25

javascript - getusermedia DevicesNotFoundError 在最新的浏览器中抛出

asp.net - 如何在 ASP.NET 中从 Codebehind 设置 Datagrid CSS 类?

php - : "route name not defined" when it's already defined如何解决

java - Mysql占用更多RAM空间并逐渐增加,没有任何下降

performance - 如何减少实时网站上的 CLS(累积布局变化)?

css - 触发 "block formatting context"时, float 元素在 Chrome/Firefox 中呈现不同