简体   繁体   English

CSS径向渐变使FireFox崩溃

[英]CSS radial gradient crashes FireFox

I am using radial gradients to create a dotted background style for my website. 我正在使用径向渐变为网站创建点状背景样式。 The radial gradient that I use in my CSS works fine in Chrome, but when I load the same webpage in FireFox, it crashes the browser, meaning that the browser does not respond and I have to use Task Manager to close it down. 我在CSS中使用的径向渐变在Chrome中工作正常,但是当我在FireFox中加载相同的网页时,浏览器崩溃,这意味着浏览器无法响应,因此我必须使用任务管理器将其关闭。

The CSS which I think causes the problem: 我认为导致问题的CSS:

/* The background is coloured #97cdcd (blue), and the radial-gradient creates the dots which are placed 
    on top of the background. */
body{
    background: -moz-radial-gradient(#a8d4e1 15%, transparent 16%),
                -moz-radial-gradient(#a8d4e1 15%, transparent 16%),
                #99c9d3;
    background: -webkit-radial-gradient(#a8d4e1 15%, transparent 16%),
                -webkit-radial-gradient(#a8d4e1 15%, transparent 16%),
                #99c9d3;
                background-color: #97cdcd;
    background-position: 0 0, 80px 80px;
     -moz-background-size:7px 7px;
    -webkit-background-size:7px 7px;
    background-size: 7px 7px;
}

I am not a FF user so I have downloaded no add-ons for the browser. 我不是FF用户,所以我没有下载该浏览器的附加组件。 I just need FF for testing browser compatibility. 我只需要FF来测试浏览器的兼容性。

Being a month-old question, I'm guessing this issue has been resolved. 作为一个月的问题,我想这个问题已经解决。 However, if you want to access your Extensions and Plugins in Firefox simply: 但是,如果您只想在Firefox中访问您的扩展程序和插件,请执行以下操作:

  1. Click on Firefox in the top right corner. 单击右上角的Firefox
  2. Click on "Add-ons" 点击“附加组件”
  3. From there you can view your Extensions and Plugins. 在这里,您可以查看您的扩展程序和插件。

Chances are that as you're not a Firefox user you probably won't have any Extensions installed. 可能是因为您不是Firefox用户,所以您可能没有安装任何扩展程序。 You will, however, more than likely have some Plugins related to certain programs you have installed on your computer. 但是,您很有可能会在计算机上安装某些与某些程序相关的插件。

So if it is an add-on that is causing this issue, which one do you think it might be? 因此,如果是导致此问题的加载项,您认为可能是哪个?

You can disable any Extensions or Plugins you may have by clicking on the Disable button to the left of it's name. 您可以通过单击其名称左侧的“ Disable按钮来Disable可能具有的所有扩展或插件。 This does not cause anything to be deleted, so if you needed to you could simply disable them all and then re-enable them all at a later date. 这不会导致任何内容被删除,因此,如果您需要,可以将其全部禁用,然后在以后重新启用它们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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