📜  如何在图像上添加图像 css 代码示例

📅  最后修改于: 2022-03-11 14:47:55.357000             🧑  作者: Mango

代码示例1
.parent {
  position: relative;
  top: 0;
  left: 0;
}
.image1 {
  position: relative;
  top: 0;
  left: 0;
  border: 1px red solid;
}
.image2 {
  position: absolute;
  top: 30px;
  left: 30px;
  border: 1px green solid;
}