Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/305.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/70.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 如何在jsoup中找到带有pseudoElement::before的HTML标记_Java_Html_Jsoup_Pseudo Element - Fatal编程技术网

Java 如何在jsoup中找到带有pseudoElement::before的HTML标记

Java 如何在jsoup中找到带有pseudoElement::before的HTML标记,java,html,jsoup,pseudo-element,Java,Html,Jsoup,Pseudo Element,我将阅读来自jsoup网站的img链接。当我搜索HTML代码时,我在a::before中找到了链接 ()类元素 ::before <span> <img src="https://link.png" alt=""> </span> 我在class=“thumb block”中没有得到任何结果。如果我查看HTML代码,我可以看到: <div class="thumb-block"> ::before <span>

我将阅读来自jsoup网站的img链接。当我搜索HTML代码时,我在a::before中找到了链接 ()类元素

::before 
<span>
<img src="https://link.png" alt=""> 
</span>
我在class=“thumb block”中没有得到任何结果。如果我查看HTML代码,我可以看到:

<div class="thumb-block">
::before
    <span>
        <img src="https:link" alt="DMC-LX100 Premium-Kompaktkamera Bild für Miniaturansicht 2">
    </span>
</div>

::之前
在jsoup结果中,我没有得到以::before元素开头的标记。有人知道我如何用jsoup解决这个问题吗


非常感谢

好的。我读了更多的信息

内容通过JavaScript添加到html代码中。Jsoup不支持JavaScript。因此,使用Jsoup是不可能的

我将尝试使用其他工具,如Selenium


谢谢。

请发布一些代码,说明如何使用jsoup搜索html。为此,请阅读
<div class="thumb-block">
::before
    <span>
        <img src="https:link" alt="DMC-LX100 Premium-Kompaktkamera Bild für Miniaturansicht 2">
    </span>
</div>