gpt4 book ai didi

javascript - 不同的 html 来源

转载 作者:太空宇宙 更新时间:2023-11-04 00:18:41 27 4
gpt4 key购买 nike

如果我查看页面源代码,我会看到

<script language="javascript" type="text/javascript">
styling += 'ul#topnav a.tabHeader5';
styling += '{';
styling += 'width: 142px;';
</script>

如果我通过 selenium 从该页面获取 html 源代码,我会看到

<style type=\"text/css\">\n\t\t\t\tul#topnav a.tabHeader5\n\t\t\t\t{\n\t\t\t\t\twidth: 142px;</style>

不明白为什么要从javascript改成css。

最佳答案

I don't understand why it is changed from javascript to css.

JavaScript 在执行时会更改 CSS。

关于javascript - 不同的 html 来源,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10143626/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com