码迷,mamicode.com
首页 > Web开发 > 详细

如何解决CSS3使用:after和:before阴影,由z-index引起的问题

时间:2014-08-13 18:33:16      阅读:269      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   color   使用   os   io   for   

问题的答案非常简单:

 

#parent { position: relative; z-index: 1; }
#pseudo-parent { position: absolute; } /* no z-index allowed */
#pseudo-parent:after { position: absolute; z-index: -1; }

 

具体参考:

http://stackoverflow.com/a/9072467

 

如何解决CSS3使用:after和:before阴影,由z-index引起的问题,布布扣,bubuko.com

如何解决CSS3使用:after和:before阴影,由z-index引起的问题

标签:style   blog   http   color   使用   os   io   for   

原文地址:http://www.cnblogs.com/guohengxi/p/3910457.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!