作者:Nicole-sasanh_880 | 来源:互联网 | 2023-06-29 13:41
问题的答案非常简单:#parent{position:relative;z-index:1;}#pseudo-parent{position:absolute;}
问题的答案非常简单:
#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