Home >Web Front-end >HTML Tutorial >The absolutely positioned img in CSS cannot be covered by the mask layer. Please solve it! ! _html/css_WEB-ITnose

The absolutely positioned img in CSS cannot be covered by the mask layer. Please solve it! ! _html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:14:362265browse

As in the title


Reply to the discussion (solution)

It may be because the z-index of the img is greater than the mask layer's

Post the code,

There are several reasons: 1. It may be that the outer frame of absolute positioning is not set, causing the absolutely positioned element to move outside the browser;
2. The mask layer is floating, but the absolute positioning layer is not set. z-index;
3. On the same floor, the hierarchical relationship of the mask layer may exceed the absolutely positioned img.

Thanks stongyann, the problem lies in the second point mentioned

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