昌子同学写了一HTML代码,如下:
很奇怪的是,这张图片在Chrome下没有出来,调了各种调式工具疹断,排除了
display: none;
overflow: hidden;
width: 0px;
height: 0px;
/*包括最不可能的*/
position: absolute;
top: npx;
left: npx;
right: npx;
bottom: npx;
之后,此图片还是不出来,啊!!!这是为什么呢?没有道理的啊!!!!调试工具发现了这东西:
Mathed CSS Rules
这是一个奇怪的东西,从未见过。。。
到stackfellow上找到这么一段文字:
What prevents you from mouse-selecting and copying (Ctrl-C, whatever) the contents of the "Matched CSS Rules" or "Computed Styles" section in the sidebar (am I missing the task you are trying to solve?)
There's a known issue with pasting the copied contents into well-known HTML-aware text editors (the CSS properties inside rules are rendered as a numbered list, which is actually a bug in the respective editors) but otherwise, if you want to manually grab a copy of all your matched CSS rules/computed style for a DOM element, this workflow should work for you.
最后我们是以改class名给处理了....
评论(83)
暂无评论!