我想要提取淘宝购物车页面中的这个图片链接
但是他在http://img.alicdn.com/tps/i3/...这个雪碧图中
有什么不用sprity把这个小图标提取出来的方法吗?
天蓬老师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
大家讲道理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.
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