
你做的是对的。除了两件事:
1)语法错误:输入后您缺少逗号
fontFamily: fonts.family.primary
2)内容应为用双引号引起来的字符串,然后应将双引号引起来。因此,空内容将是
content: '""',
因此,请尝试以下 *** 作:
link: { position: 'relative', fontFamily: fonts.family.primary, '&:before': { content: '""', position: 'absolute', bottom: 0, left: 50, width: '100%', height: '1rem', display: 'block', background:styles.colors.white }}欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)