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?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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.
回答2:
- Right click → copy → copy element
回答3:
- Select the
<html>
tag in Elements. - Do CTRL-C.
- Check if there is only lefting
<!DOCTYPE html>
before the<html>
.