1、jsx中backgroundSize设置无效
解决办法:background-size放进background里
background: [background-color] [background-image] [background-repeat] [background-attachment] [background-position] / [ background-size] [background-origin] [background-clip]
注意:background属性连写的时候,background-size属性前面要加斜杠(/)才能生效
参考链接:https://blog.csdn.net/qq_39512863/article/details/86607658