[英]How do I debug CSS, when a style is applied to element on :hover over element's parent (preferably in Firebug)?
I want to inspect CSS style of a list, applied by ul li:hover > ul {}
rule in Firebug. 我想检查由Firebug中的
ul li:hover > ul {}
规则应用的列表的CSS样式。
So the trick with checkbox on ":hover" won't work, cause I have to hover the inspected element's parent, not the element itself. 因此,带有“:hover”复选框的技巧不起作用,因为我必须将鼠标悬停在被检查元素的父元素上,而不是元素本身。
How do I inspect style applied to that kind of element? 如何检查应用于此类元素的样式? Is there any way I could move to the style panel with a hotkey, while holding the mouse over element's parent?
在将鼠标悬停在元素的父元素上时,有什么方法可以通过热键移至样式面板? Thanks in advance.
提前致谢。
The best thing I managed to do is painfully and patiently Tab the focus to Style subwindow. 我设法做的最好的事情是痛苦而耐心地将焦点移至“样式”子窗口。 It worked, but I wish there was a better way to do that.
它奏效了,但我希望有更好的方法可以做到这一点。
I just released a tool that you can use to easily view the layout of all of your elements - even in their hover state. 我刚刚发布了一个工具,您可以使用它轻松查看所有元素的布局-即使它们处于悬停状态。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.