How can I get the CSS Selector in Chrome?

前端 未结 5 1589
小鲜肉
小鲜肉 2020-11-28 09:12

I want to be able to select/highlight an element on the page and find its selector like this:

div.firstRow div.priceAvail>div>div.PriceCompare>div.B

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-28 09:46

    It's sometime necessary to do this if you have a very complex app structure that you inherited and are trying to track down a very tricky multi nested css depth problem. Jquery mobile pre 1.3 would be a good example of this. Bootstrap apps etc..

    I tried the above tool but could not get that to actually select the entire parent and children of a complex inheritance similar to the original posters question.

提交回复
热议问题