chrome: difference page source and inspect element?

后端 未结 3 1098
名媛妹妹
名媛妹妹 2020-12-18 09:51

what is the difference between the html in \'view page source\' and inspect element in Chrome 15? looks like 2 different html?

相关标签:
3条回答
  • 2020-12-18 10:38

    I guess code modified/added by JavaScript will be available in Developer tool inspect element. And code at time of page load can be seen by view source.

    0 讨论(0)
  • 2020-12-18 10:38

    View page source opens the file in a separate window, whereas inspect element allows you to modify (locally of course) the code and change css values while the page live-updates.

    0 讨论(0)
  • 2020-12-18 10:42

    The view page source page shows you the exact text that was returned by the server. Inspect element actually shows you the fully rendered DOM tree.

    The DOM tree is slightly different for each browser, depending on the specific quirks and support of features.

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