surmon-china / videojs-player

@videojs player component for @vuejs(3) and React.
https://github.surmon.me/videojs-player
MIT License
5.25k stars 1.13k forks source link

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

Open chaderenyore opened 2 years ago

chaderenyore commented 2 years ago

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;
 }
xelinel32 commented 2 years ago

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.