例如,我有一个图像Projector.jpg http://lieblingskoeder.umatechcorner.com/imgsample/Projector.jpg
首先,我在画廊中以特定尺寸显示此图片。这样显示了几张图像。
其中一张图片应标记为“本月优胜者”。为此,我有另一个透明图像WinnerOfTheMonth http://lieblingskoeder.umatechcorner.com/imgsample/winnerofthemonth.png。我需要将此图像显示在projection.jpg的左上角。
是否有可能使用CSS来实现?有人可以帮忙吗?
最佳答案
将两个图像都放在div中
给div position:relative
给本月获奖者图像position:absolute;top:0;left:0;
jsFiddle example