.items { display:flex } .item { width:100px; height:60px; text-align:center; line-height:60px; background-color:black; color:white; position:relative; } .item:before { content:''; height:4px; background-color:#BADFED; width:100%; position:absolute; left:0; bottom:0; transform:scaleX(0); transition:.3s; } .item:hover:before { transform:scaleX(1); }
更新时间:2021-12-17 00:26:47