在Google Chrome的检查元素中复制HTML代码 [英] Copying HTML code in Google Chrome's inspect element
本文介绍了在Google Chrome的检查元素中复制HTML代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个网站,我想复制HTML代码 - 我如何复制检查元素中的所有文本 - 所以我没有得到该网站的HTML代码,但代码我已经改变了,所以我没有我不想在我自己的网页中的元素? 解决方案
以下内容:
- 选择您要复制的最顶层元素。 (要全部复制,请选择
< html>
) - 右键点击 。
- 以HTML编辑
- 新的子窗口以HTML文本打开。
- 这是您的机会。按CTRL + A / CTRL + C并将整个文本字段复制到另一个窗口中。
这是一种很冒险的方式,但它是最简单的方法来做到这一点。
I have a website of wich I want to copy an HTML code from - how do I copy all the text in inspect element - so I don't get the website's HTML code, but the code that I have already changed so that I don't have elements I don't want in my own webpage?
解决方案
Do the following:
- Select the top most element, you want to copy. (To copy all, select
<html>
) - Right click.
- Select Edit as HTML
- New sub-window opens up with the HTML text.
- This is your chance. Press CTRL+A/CTRL+C and copy the entire text field to a different window.
This is a hacky way, but it's the easiest way to do this.
这篇关于在Google Chrome的检查元素中复制HTML代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文