本文介绍了如何防止CSS声明丢弃错误跨浏览器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我想知道如何轻松地防止丢失的错误从调试软件,如在Firefox中的webdeveloper插件。我收到错误,如:

Hi I would like to know how to easily prevent dropped errors from appearing from debugging software such as webdeveloper plugin in Firefox. I get errors such as:

警告:解析值为'过滤器'时出错。声明已删除。

Warning: Error in parsing value for 'filter'. Declaration dropped.

警告:解析font的值时出错。

Warning: Error in parsing value for 'font'. Declaration dropped.

我理解我收到这些错误,因为Firefox不支持这些CSS属性,但是如何将其丢弃,所以Firefox不会尝试读取它们第一名?我知道我可以为每个浏览器创建一个单独的样式表,但这是一个不便。是否有简单的解决方案?

I understand I get these errors because Firefox does not support these CSS properties, but how do I drop them before hand so Firefox does not attempt to read them in the first place? I know I can create a separate style sheet for every browser but that is a inconvenience. Is there a simple solution?

推荐答案


  1. em>在中投放或导入IE特定的样式;

  1. I'd always put or import IE-specific styles inside a conditonal comment;

标准CSS FF应该与,因此只需检查语法例如 font:bold 12px / 30px格鲁吉亚,serif; 以空格分隔的值,多字字体名称以及引号等。

as standard CSS FF should be fine with 'font', so just check your syntax e.g. font: bold 12px/30px Georgia, serif; values separated by spaces, multi-word font names in quotes, etc.

这篇关于如何防止CSS声明丢弃错误跨浏览器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-06 19:48