好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

z-index为什么.box1.inner不在.box2之上?_html/css_WEB-ITnos

z-index为什么.box1 .inner不在.box2之上?
有没有关于z-index详细讲解的文章,包括测试代码的。


    page title    	 		.box1,.box2,.box3,.inner{width:200px;height:200px;}		.box1{background-color:red;position:relative;z-index:1;}		.box2{background-color:green;position:relative;z-index:1;top:-30px;left:50px;}		.box3{background-color:tan;}		.inner{background-color:#3A80F3;position:absolute; left:20px;top:20px;z-index:1000;}	 	

box1 z-index:1;

box1 inner z-index:1000

查看更多关于z-index为什么.box1.inner不在.box2之上?_html/css_WEB-ITnos的详细内容...

  阅读:37次