如何使用chrome检查CSS元素? [英] How to inspect CSS element using chrome?

查看:243
本文介绍了如何使用chrome检查CSS元素?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想弄清楚如何使用Chrome检查元素。现在我知道如何检查元素,但是如何检查按钮的功能,如 hover active

I am trying to figure out how to inspect an element using Chrome. Now I know how to inspect an element, but how do I inspect a button's functions, like hover and active as well.

我想检查网页左上角的YouTube登入按钮。我有悬浮属性,但是如何检查链接和活动状态属性?

I am trying to inspect the Youtube's sign-in button on the top left of the page. I got the hover attributes, but how do I inspect the link and active state attributes?

推荐答案

,在样式选项卡中,有一个切换元素状态按钮。点击它应用各种伪状态:

When you're inspecting the element, in the styles tab, there's a "toggle element state" button. Click it to apply various pseudo-states:

这篇关于如何使用chrome检查CSS元素?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆