videojs-player icon indicating copy to clipboard operation
videojs-player copied to clipboard

I still can't set width and height to be 100% or vh

Open chaderenyore opened this issue 2 years ago • 1 comments

Hello, am not chinese, I hope I can get help. Am using the component with nuxt and I can't set the width and height of the video container not the video itself to 100% and set the height to 75vh so that the video can attach to it. In the dom there is another div that sets the style for me so It's that one I had to target. like this

.video-player-box > div {
    width: 100% !important;
    height: 70vh !important;
 }

chaderenyore avatar May 10 '22 18:05 chaderenyore

Hello, am not chinese, I hope I can get help. Am using the component with nuxt and I can't set the width and height of the video container not the video itself to 100% and set the height to 75vh so that the video can attach to it. In the dom there is another div that sets the style for me so It's that one I had to target. like this

.video-player-box > div {
    width: 100% !important;
    height: 70vh !important;
 }

videojs can pass fluid propery. Try it.

xelinel32 avatar Aug 16 '22 19:08 xelinel32