Change body background dynamically in css #17239
-
Let's say I have a page called
So I would like nextjs to support change global css in module css files. Maybe like :global body {
background: red;
} FootnotesQ: Why do I have to change body background, why not the container A: overscrolling in macOS and iOS browsers will reveal body background, see https://stackoverflow.com/a/42264959/1061155 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Use <style jsx global>
{`
body {
background: red;
}
`}
</style> in your |
Beta Was this translation helpful? Give feedback.
-
try useEffect in your compoments
|
Beta Was this translation helpful? Give feedback.
Use
in your
warning/[id].js