标签: html css jsx
我正在尝试将img附加到div标签(而不是img标签)上,但是当我尝试这样做不起作用时。
srcs[1] = "data:image/png;base64, iVBORw0KGgoAAAA..." <div style={{ background: `url(${srcs[1]})center/cover no-repeat` }} />
有什么想法吗?