<style>a { display:inline-block; width:50px; height:50px; margin-left:20px; background:#CCC;}a:hover { border-bottom:#F00 solid 7px;}</style><body><div style=" width:1000px; height:500px; margin:0 auto;"> <div style=" height:50px;background:#3C9;"> <a></a> <a></a> <a></a> <a></a> </div> <div style=" height:300px; margin-top:50px; background:#0F0;"> </div></div>移入其中一個a上面都會導(dǎo)致其他三個下移,這是為嘛
a添加hover顯現(xiàn)border,移入導(dǎo)致其他a下移
函數(shù)式編程
2018-11-13 10:09:47