0
在響應根目錄下,我創建了一個div
,它自動分配給data-reactroot
。我已經搜索並嘗試以任何方式爲此div設置樣式Add css to data-reactroot。但它不適合我。數據重新引導的樣式
通過.scss從root
訪問來自CSS代碼
#root > [data-reactroot] { background-color: red }
並添加className
到div
<div className="tablediv">
.tablediv { background-color: red }
有沒有一種方法來設置風格到DIV?我正在使用反應15.6.1