CSS to make a div on top

The Z-index property determines the stacking level of an HTML element.

The element stack level is relative to the element's position on the Z-axis (as opposed to the X-axis and the Y-axis).

A higher Z-index value means the element will be closer to the top in the stacking order.

This stacking sequence is presented along the vertical axis.

Obviously, the level can only be changed through code, and this property is z-index.

There is a small premise for z-index to work, that is, the element's position attribute should be relative , absolute or fixed .

Other:

If it will be covered by some FLASH files,
you can set the parameter wmode of the flash object to transparent.

 

 

The level is limited, if you have any questions, please leave a message to exchange.

Learn from each other and make progress together :) Please indicate the source for reprinting. Thank you.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325361666&siteId=291194637