videogular crops video rather than resizing

人盡茶涼 提交于 2019-12-11 17:34:07

问题


I have a video with original size 1920x1080. I am using the css from the basic set up tutorial, but tried setting the default height in css to 1080:

.videogular-container {
    width: 100%;
    height: 1080px;
    margin: auto;
    overflow: hidden;
}

@media (min-width: 1200px) {
    .videogular-container {
        width: 1170px;
        height: 658.125px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .videogular-container {
        width: 940px;
        height: 528.75px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .videogular-container {
        width: 728px;
        height: 409.5px;
    }
}

That seems to be the overflow thing - it just hides the rest of the video instead of actually resizing it.

In the config I have this set up:

width: 1920,
 height: 1080,      
 responsive: true,

What am I doing wrong?


回答1:


This is related with answer Controls font/symbols missing - videogular

You need to set the correct url for Videogular theme.




回答2:


This helps me. Just put it on the CSS file where the video is.

video {
  width: 100% !important;
  height: auto !important;
}

With display as FLEX



来源:https://stackoverflow.com/questions/30146285/videogular-crops-video-rather-than-resizing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!