Chrome not respecting video source inline media queries

后端 未结 3 752
渐次进展
渐次进展 2021-02-13 00:24

Using the below, Chrome is not respecting the media queries to display the correct video source based on the device width. Chrome is just playing the first source it finds as yo

3条回答
  •  盖世英雄少女心
    2021-02-13 00:35

    
    
    

    Can be done in CSS like

    .desktop-video {
        display: grid;
    
        @include media-breakpoint-down(lg) {
            display: none;
        }
    }
    
    .mobile-video {
        display: none;
    
        @include media-breakpoint-down(lg) {
            display: grid;
        }
    }
    

提交回复
热议问题