简体   繁体   English

将样式应用于元素上的:hover(最好在Firebug中)时,如何调试CSS?

[英]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. 我刚刚发布了一个工具,您可以使用它轻松查看所有元素的布局-即使它们处于悬停状态。

HTML Box Visualizer - GitHub HTML Box Visualizer-GitHub

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将鼠标悬停在父元素上时如何设置子元素的样式 - How to style child's child element when hover over parent 如何将鼠标悬停在子元素上而不将悬停在CSS中的父元素上? - How do I hover over a child element without hovering over the parent in CSS? 当鼠标移动到子元素时,如何保持CSS悬停规则适用? - How do I keep a CSS hover rule applied when the mouse moves to the child element? CSS:如何将鼠标悬停在一个元素上,然后显示另一个元素? - CSS: How do I hover over one element, and show another? 使用CSS将鼠标悬停在重叠元素上时,样式悬停状态 - Style hover state of element when hovering over overlapping elements with CSS 我怎么知道什么时候应该将CSS动画应用于包含元素而不是直接应用于元素? - How do I know when a CSS animation should be applied to the containing element vs applied directly to the element? css悬停元素来显示孩子,当我将鼠标悬停在孩子身上时,如何将悬停css保留在父母身上? - css hover element to show child, how can I keep the hover css on the parent when I mouseover the child? 如何应用 hover:当我将鼠标悬停在其父元素上时对元素的影响? - How can I apply hover: effect on an element when I mouse over its parent element? 将鼠标悬停在父元素上时,如何更改子元素? - How can I make the child element change when hover is applied on the parent? 根据应用到的元素区分 CSS 样式 - Differentiate CSS style based on element it's applied to
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM