Firebug杀死-webkit在CSS文件中的设置 - 为什么? [英] Firebug kills -webkit Settings in CSS File - Why?

查看:139
本文介绍了Firebug杀死-webkit在CSS文件中的设置 - 为什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

style.css - 原始档案



  .box { -webkit-border-radius:8px; -moz-border-radius:8px; padding:10px; }在Firebug CSS控制台中       em> 

  .box {-moz-border-radius:8px 8px 8px 8px; padding:10px; } 

如何强制Firebug显示我的-webkit css样式? strong>
感谢您的帮助!

解决方案

我认为你不能 - 浏览器的正确行为忽略他们不明白的样式规则。 Firefox看到 -webkit-xxx 并有效地从样式集中删除它,因此它不能应用于 .box c>



Safari的检查器将显示 -webkit - moz - 规则的原因相同。


style.css - Original File

.box { -webkit-border-radius:8px; -moz-border-radius:8px; padding:10px;  }

style.css - In Firebug CSS Console

.box { -moz-border-radius:8px 8px 8px 8px; padding:10px;  }

How can I force Firebug to show my -webkit css styles as well? Thanks for your help!

解决方案

I don't think you can - the correct behaviour for browsers is to ignore style rules they don't understand. Firefox sees -webkit-xxx and effectively removes it from the style set, so it can't ever be applied to .box.

Safari's inspector will show the -webkit- rules but ignore the -moz- rules for the same reason.

这篇关于Firebug杀死-webkit在CSS文件中的设置 - 为什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆