在网页上,我想显示相册列表,并在每个相册名称旁边显示一个堆叠的图片列表。动态获取图片列表并将它们堆叠在一起的最佳方法是什么
这是一个例子:
最佳答案
为什么不直接建一个呢?这并不难。这是我制作的一个小型旋转原型(prototype)(大约花了 5 分钟来编写)
Element.prototype.rotate = function(d) {
var s = "rotate(" + d + "deg)";
if (this.style) { // regular DOM Object
this.style.MozTransform = s;
this.style.WebkitTransform = s;
this.style.OTransform = s;
this.style.transform = s;
}
this.setAttribute("rotation", d);
};
然后您可以使用它旋转图像列表.. see (not very good :P) example here
<小时/>看起来OP想要更多
这对于接近示例来说怎么样? 我认为一些 Angular 可能有偏差...
关于javascript - 如何在 JavaScript 中显示堆叠在一起的多张图片,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7357079/