material伪元素
redSpan: { position: 'relative', textDecoration: 'none', fontSize: 20, color: '#333', "&:hover": { "&:before": { width: '100%', left: 0, right: 0, } }, "&:before": { content: '""', //这一行是重点 position: 'absolute', left: '50%', bottom: -2, width: 0, height: 2, background: '#4285f4', transition: 'all .3s', }, },
material伪元素.txt · 最后更改: 2020/03/12 17:53 由 螃蟹