简体   繁体   中英

CSS layers - z-index

enter image description here I have added this check button into the card, and added position into it so I can put it in the corner on the left, but when I get the button out of the card corner I got disappear, even when I use z-index!

That's because you have overflow: hidden; set for the .note-card . If you want to keep it, you will have to move your check outside that container or switch to overflow: visible and deal with the cut-off text differently, either by making the box taller, shortening text, or wrapping that text in another div that then would have the overflow: hidden to just cut off the text.

The button disappears because you have the overflow property set to hidden on the .note-card element. Try setting this property to visible .

Also providing a code snippet can allow others to help you in a better manner as screenshots of code are not that helpful.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM