ax.*_*ax. 86
wget --page-requisites http://example.com/your/page.html
Run Code Online (Sandbox Code Playgroud)
此选项使Wget下载正确显示给定html页面所需的所有文件.这包括内联图像,声音和引用样式表等内容.
编辑:meder是对的:股票wget不解析和下载CSS图像.然而,有,,增加了该功能的补丁:[ 1,2 ]
更新:上面提到的补丁已合并到 2009年9月22日发布的wget 1.12中:
** Added support for CSS. This includes:
- Parsing links from CSS files, and from CSS content found in HTML
style tags and attributes.
- Supporting conversion of links found within CSS content, when
--convert-links is specified.
- Ensuring that CSS files end in the ".css" filename extension,
when --convert-links is specified.
Run Code Online (Sandbox Code Playgroud)
小智 11
可以通过Firefox执行此操作,请参阅此表单
参考 - http://www.webdeveloper.com/forum/showthread.php?t=212610
小智 8
wget是一个很棒的选择.仅仅是为了获取更多信息,此时Windows上的wget版本在gnu上没有针对wget版本1.12的正式版本.目前的版本是1.11
wget版本1.11无法下载css文件中的图像/字体.幸运的是,您可以从此页面中找到1.14版本.它解决了这些问题.
http://opensourcepack.blogspot.com/2010/05/wget-112-for-windows.html