How to use z-index:-1 to make a layer below all layers as a background
This article mainly explains "how to use z-index:-1 to make a layer under all layers as background". The explanation in this article is simple and clear, easy to learn and understand. Please follow the ideas of Xiaobian and go deep into it slowly to study and learn "how to use z-index:-1 to make a layer under all layers as background" together!
Method to have a layer below all layers as background: z-index:-1
To make z-index less than 0
The code is as follows:
img
{
position:absolute;
left:0px;
top:0px;
z-index:-1;
}
This is a heading
Since the z-index of the image is-1, it appears after the text.
Thank you for reading, the above is "how to use z-index:-1 to make a layer under all layers when the background" content, after the study of this article, I believe everyone on how to use z-index:-1 to make a layer under all layers when the background This problem has a deeper understanding, the specific use of the situation also needs to be verified by practice. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!