【问题标题】:chrome dev tools doesn't show repetitive css properties in stable releasechrome 开发工具在稳定版本中不显示重复的 css 属性
【发布时间】:2012-08-27 11:43:26
【问题描述】:

在开发时了解为特定元素实现的所有 css 属性很有用,但 chrome 稳定版不这样做, 这里是示例,body 元素具有渐变背景,但当然要在所有浏览器上实现这一点,您必须这样做

background: -webkit-gradient(radial, center center, 500, center center, 1400, from(transparent), to(rgba(0, 0, 0, 0.6))) white;
background: -webkit-radial-gradient(farthest-side, transparent 90%, rgba(0, 0, 0, 0.2) 150%) white;
background:    -moz-radial-gradient(farthest-side, transparent 90%, rgba(0, 0, 0, 0.2) 150%) white;
background:     -ms-radial-gradient(farthest-side, transparent 90%, rgba(0, 0, 0, 0.2) 150%) white;
background:      -o-radial-gradient(farthest-side, transparent 90%, rgba(0, 0, 0, 0.2) 150%) white;
background: radial-gradient(farthest-side, transparent 90%, rgba(0, 0, 0, 0.2) 150%) white;

点赞here

所以当你在 chrome 稳定版中检查 body 元素时,你会得到这个

但是在金丝雀中你会得到这个

那么有没有办法让稳定版本显示所有重复属性?

【问题讨论】:

  • 这不是我在稳定的 Chrome 中得到的...我可以从您的屏幕截图中看到您安装了一些适用于开发工具的扩展程序。您是否尝试禁用它们并看看会发生什么?
  • 同样的事情——这个扩展安装在金丝雀和稳定版本上,金丝雀版本显示所有重复属性,而稳定版本没有

标签: css google-chrome-devtools


【解决方案1】:

好吧,Chrome 只是忽略了不针对他的属性……这很正常。如果您想测试/调试其他属性的代码(使用其他供应商前缀),您应该使用正确的浏览器测试/调试它们:chrome 开发工具不是为此而设计的。

【讨论】:

  • 那么为什么金丝雀版本的行为方式不同并显示所有重复属性
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-06-15
  • 2013-08-28
  • 2019-08-25
  • 1970-01-01
  • 2016-04-15
相关资源
最近更新 更多