Add img on top of img html

I have two img tags as shown below, but the img tag with the class "portfolioImage1" always shows up underneath the img tag with the class "portfolioItem1". How can I achieve having it the other way round so that portfolioImage1 is above portfolioItem1? Thanks in advanced.
CSS .portfolioContainer { height: 400px; width: 490px; left: 400px; top: 275px; position: absolute; } .portfolioItem1 { left: 20px; z-index: 1; position: absolute; } .portfolioImage1 { z-index: 2; }
When you say under, do you mean below or behind?

以上就是Add img on top of img html的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » HTML5 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准