复制Google Chrome浏览器检查元素中生成的HTML

时间:2018-08-29 10:34:15

标签: html google-chrome inspect-element

代码(仅供参考):

<!DOCTYPE html>
    <html>
    <head>

    </head> 
    <body>

    <div style="font-size:30px; width:100%; text-align:center; 
    border:solid 1px black;">YouTube: </div>
    <br><iframe src="https://www.youtube.com/embed/5H9hmO4t-I" 
    frameborder=0 width=510 height=400 scrolling=no 
    allowfullscreen=allowfullscreen></iframe>
    <iframe src="https://www.youtube.com/embed/BHgh4_1ksGQ&t" 
    frameborder=0 width=510 height=400 scrolling=no 
    allowfullscreen=allowfullscreen></iframe>
    <iframe src="https://www.youtube.com/embed/mHhZ9jk-DrU" 
    frameborder=0 width=510 height=400 scrolling=no 
    allowfullscreen=allowfullscreen></iframe>
    <iframe src="https://www.youtube.com/embed/Esw9vyF0MGw" 
    frameborder=0 width=510 height=400 scrolling=no 
    allowfullscreen=allowfullscreen></iframe>
    <iframe src="https://www.youtube.com/embed/kzXzsjkNwVE"  
    frameborder=0 width=510 height=400 scrolling=no 
    allowfullscreen=allowfullscreen></iframe>
    <iframe src="https://www.youtube.com/embed/IlotMjmFf-Q" 
    frameborder=0 width=510 height=400 scrolling=no 
    allowfullscreen=allowfullscreen></iframe>
    <iframe src="https://www.youtube.com/embed/lpbzph6O6pc" 
    frameborder=0 width=510 height=400 scrolling=no 
    allowfullscreen=allowfullscreen></iframe>
    <iframe src="https://www.youtube.com/embed/scyYfbL5P9w" 
    frameborder=0 width=510 height=400 scrolling=no 
    allowfullscreen=allowfullscreen></iframe>
    <iframe src="https://www.youtube.com/embed/fwfUE5FLJBs" 
    frameborder=0 width=510 height=400 scrolling=no 
    allowfullscreen=allowfullscreen></iframe>
    <iframe src="https://www.youtube.com/embed/xocBqB5bARY" 
    frameborder=0 width=510 height=400 scrolling=no 
    allowfullscreen=allowfullscreen></iframe>
    <iframe src="https://www.youtube.com/embed/o8SDQ29-wfE" 
    frameborder=0 width=510 height=400 scrolling=no 
    allowfullscreen=allowfullscreen></iframe>
    <iframe src="https://www.youtube.com/embed/rUely4qsxaQ" 
    frameborder=0 width=510 height=400 scrolling=no 
    allowfullscreen=allowfullscreen></iframe>

    </body>
    </html>

我创建了这个html文件,该文件包含youtube视频的多个iframe窗口,并希望复制页面运行时生成的html。当iframe无法加载或发生类似情况时,在#document行的iframe下会生成一个文本“发生错误,请稍后重试”,因此我要复制所有生成的html。我可以复制这一行,但必须一步一步走。 当我选择html标记并选择复制html时,它确实仅复制原始html。我尝试了Web开发人员扩展,在mozilla中尝试了firebug(omnibug)附加组件,用mozilla扩展名累了复制内部html,但它只复制了原始html。

有人知道如何解决此问题吗?

0 个答案:

没有答案