【发布时间】: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