Searching for HTML elements in Chrome DevTools

前端 未结 4 1680
遥遥无期
遥遥无期 2021-01-30 16:08

On this website, there\'s a div with the attribute class=\"item\". When I clicked F12 to bring up the Developer Tools. I pressed Ctrl

相关标签:
4条回答
  • 2021-01-30 16:46

    This seems like it might be a bug. You can report it on http://crbug.com.

    If you were to search for 'item' you should be able to find the elements that have the class item on them.

    0 讨论(0)
  • 2021-01-30 16:55

    I searched for the XPath of the element instead and it worked:

    //*[@class="item"]

    0 讨论(0)
  • Dayuloli's fix is a good one, you can also just search for "item" although that won't work if there are multiple classes on that element.

    0 讨论(0)
  • 2021-01-30 16:59

    Late answer but pretty sure .item would've worked.

    0 讨论(0)
提交回复
热议问题