有个显示层,z-index已经很大了,可是下拉菜单还是在它之上,谁能帮忙解答啊?下拉菜单的z-index负值也不

[复制链接]
查看11 | 回复1 | 2011-5-5 10:03:48 | 显示全部楼层 |阅读模式
我以前也经常遇到这个问题,后来我直接用js给每个div加上z-index,就不会出现这个问题了,呵呵……给你个jquery的代码做这件事的。//This code will start with a z-index of 10000, and decrement the z-index for each DIV element of the page by 10, giving the first DIV a z-index of 10000, the second, 9990, the third 9980, and so on. Notice that the selector will find all DIV elements wi
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行