猿问

外边距top为负值的情况会不会碰到其他元素出现层叠呢?

IT骒
浏览 1595回答 1
1回答

qq_大寒_2

所有这类问题,自己写写div就会很容易明白的,.box1{width:300px;height:300px;background:red;margin-bottom:100px;} .box2{width:300px;height:300px;background:green;margin-top:-50px;opacity:0.5;filter:alpha(opacity=50);}不会.box1{width:300px;height:300px;background:red;} .box2{width:300px;height:300px;background:green;margin-top:-50px;opacity:0.5;filter:alpha(opacity=50);}会
随时随地看视频慕课网APP
我要回答