【问题标题】:Extracting background image from home page [closed]从主页中提取背景图像[关闭]
【发布时间】:2015-07-31 03:39:48
【问题描述】:

我正在尝试从该网站提取背景图片。当我右键单击并查看源代码时,我在 chrome 开发工具中找不到它。不太确定他们将背景图片链接隐藏在哪里。任何帮助,将不胜感激。

这里是主页:http://aframe.com/

【问题讨论】:

  • <img src="/themes/newTheme/images/default.jpg?v=1" style="position: absolute; margin: 0px; padding: 0px; border: none; width: 1749.21713441654px; height: 1161px; max-height: none; max-width: none; z-index: -999999; left: -12.6085672082718px; top: 0px;"> 网址是http://aframe.com/themes/newTheme/images/default.jpg

标签: javascript html css image href


【解决方案1】:

http://aframe.com/themes/newTheme/images/default.jpg?v=1 这是我朋友的链接,它在一个带有“backstretch”类的div中

<div class="backstretch" style="left: 0px; top: 0px; overflow: hidden; margin: 0px; padding: 0px; height: 1139px; width: 1903px; z-index: -999999; position: fixed;"><img src="/themes/newTheme/images/default.jpg?v=1" style="position: absolute; margin: 0px; padding: 0px; border: none; width: 1903px; height: 1263.06960784314px; max-height: none; max-width: none; z-index: -999999; left: 0px; top: -62.0348039215687px;"></div>

<img src="/themes/newTheme/images/default.jpg?v=1" style="position: absolute; margin: 0px; padding: 0px; border: none; width: 1903px; height: 1263.06960784314px; max-height: none; max-width: none; z-index: -999999; left: 0px; top: -62.0348039215687px;">

来源:http://aframe.com/

【讨论】:

    【解决方案2】:

    devtools 中的图像可以在 Frames > Images 的 Resources 选项卡下找到(其中可能有一两个文件夹)。请注意,您不会非法下载复制的图像以用于您自己的项目...

    【讨论】:

      猜你喜欢
      • 2017-01-06
      • 1970-01-01
      • 1970-01-01
      • 2015-08-09
      • 1970-01-01
      • 1970-01-01
      • 2010-11-28
      • 1970-01-01
      • 2011-03-17
      相关资源
      最近更新 更多