问题描述
我在 React 中使用 makestyles,我不明白为什么之前的内容不会显示。如果我将内容设为图片但不显示文本,它会起作用。
进一步澄清之前元素根本没有被渲染。
cardPoint: {
alignSelf: 'center',justifySelf: 'start',maxWidth: '250px',position: 'relative',"&:before": {
content: 'Look at me',display: 'inline-block',color: '#000',},}
解决方法
我认为您必须将 'Look at me'
传递为 '"Look at me"'
: