jsx style用法 one_day 2024-04-03 56 阅读1分钟 style={{ background: `${backgroundImage ? `url(${backgroundImage}) center top / 100% 60.5333vw no-repeat` : '#fff'}`, ...(backgroundImage ? { backgroundColor: '#fff' } : {}), }}