简体   繁体   中英

Javascript Z-Index

I'm having a problem with a jquery snow falling effect and a nivo slider. The problem seems to be that the snow falls behind the slider images, so I'm guessing it has something to do with the z-index of the snow falling effect.

I don't know much about Javascript so am not sure how to change the z-index of it.

Can anyone help with this? Here is a link , I can post code if needed.

Thanks. Al.

You will fix the issue by using (of course you should apply it each time you create a new snow flakes...):

$("div:contains('❄')").css('z-index', 200);

Anyway, it's not a good solution. I use it because each snow flake on the screen is with id flake . I suggest you to set class name instead of id (or at least to set unique ids).

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