javascript - Jquery selector issue for crawling web pages
滿天的星座
滿天的星座 2017-05-18 10:49:44
0
1
646

When using Jquery to analyze web pages, I feel that both writing methods should be able to choose.
But in fact, the above way of writing is OK, but the following way is not.
The URL is: http://www.shindengen.co.jp/t...

p#newsTab ul.panel dl
p#newsTab ul.panel dl.clearfix

The dl I see in Chrome's F12 developer tool is <dl class="clearfix">
If I look directly at the source code, there is no class attribute. The problem should be here.
But why are the source code and developer tools displayed differently?

滿天的星座
滿天的星座

reply all(1)
習慣沉默

In the source code: view-source:http://www.shindengen.co.jp/t...
I don’t see the dl.clearfix element. Why do you add the .clearfix selector to it?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template