Reactjs - setting inline styles correctly

后端 未结 4 639
日久生厌
日久生厌 2020-12-13 01:30

I am trying to use Reactjs with a kendo splitter. The splitter has a style attribute like

style=\"height: 100%\"

With Reactjs, if I have un

4条回答
  •  粉色の甜心
    2020-12-13 02:32

    You could also try setting style inline without using a variable, like so:

    style={{"height" : "100%"}} or,

    for multiple attributes: style={{"height" : "100%", "width" : "50%"}}

提交回复
热议问题