Home  >  Q&A  >  body text

css - 我想要提取的图片在雪碧图里

我想要提取淘宝购物车页面中的这个图片链接
但是他在http://img.alicdn.com/tps/i3/...这个雪碧图中
有什么不用sprity把这个小图标提取出来的方法吗?

天蓬老师天蓬老师2721 days ago1078

reply all(4)I'll reply

  • 高洛峰

    高洛峰2017-04-17 14:33:42

    Snapshot directly, simple and fast

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-17 14:33:42

    What you want to withdraw is actually the level of this member, right?
    This picture was intercepted through css, so the css of different levels should be different. You can know the level of this member by judging the css

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-17 14:33:42

    If you reference the icon in this picture multiple times (multiple times), there is no need to extract it. You can directly reference the resource and pass it through

    p{
      background-Image: url(img.url)
      background-position:xpx ypx
    }
    

    Just change the position.

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 14:33:42

    Set a block that is the same size as the image you want to extract, and then use background-Image: url(img.url) xpx xpx to position the image

    reply
    0
  • Cancelreply