Home >Web Front-end >HTML Tutorial >How to make two pictures overlap? _html/css_WEB-ITnose

How to make two pictures overlap? _html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:25:253387browse

It is required that two pictures overlap. The upper picture is a square implemented with CSS. I want its lower left corner to coincide with the lower left corner of the lower picture, and the side length is equal to the shorter side of the lower picture. How to achieve this? ?


Reply to the discussion (solution)

There is a z-index attribute in css

bingo, just use that z-index attribute

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn