用户:
ASWRYTS查看:8 回复:4 评论:8 创建时间:2018-09-23T14:02:16
怎么办?
如果不能就帮我吧这些搞成一张一张的【去掉底色】
ASWRYTS代码为
var t = document.getElementById('img2'),
s = document.getElementById('img1').getAttribute('src');
//设定div展现区域的大小
t.style.width = '60px'; t.style.height = '60px';
//设定div背景图为你要的图片
t.style.backgroundImage = 'url('+s+')';
//设定背景图的坐标偏移量
t.style.backgroundPosition = '-10px -60px';点赞0
评论