Add CSS to react created elements like data-reactroot

前端 未结 3 1118
时光说笑
时光说笑 2021-02-04 01:28

Under my root div react creates another div \"automatically\". Is there a way to add a class to that div? I need to add height: 100% to it to prevent the background content to s

3条回答
  •  梦毁少年i
    2021-02-04 01:43

    If you want to use in-line css, just make your top div position is absolute and left, top, right, bottom is zero. So if you inspect the element:

提交回复
热议问题