Can't apply container size when open or refresh page



When I resize browser, css apply container size but
I can’t apply container size when open or refresh page.
I wrote style code on div in html but any change.
What’s wrong with this code?

It’s not entirely clear what your problem is. What does your script look like with three.js?
But I guess you don’t have a function onWindowResize(). Have a look at some examples from the collection, like RaycastingToLine.

Oh, Thanks for help.
Check my three.js with the collection and I fix it.
Thank you.