diff --git a/src/views/study/coursenew.vue b/src/views/study/coursenew.vue index c730436c..a06b8ce1 100644 --- a/src/views/study/coursenew.vue +++ b/src/views/study/coursenew.vue @@ -1800,19 +1800,40 @@ min-height: 400px; display: flex; justify-content: space-between; + .course-player-container { + display: flex; + flex-direction: column; + height: 100%; + } .course-player{ //内容播放区域 - background-color: #f5f7fa; - flex:1; + flex: 4; // 80%高度 min-width: 700px; - min-height: 400px; - max-height: 800px; - //height: 100%; + // min-height: 400px; + // max-height: 800px; + height: 80%; border: 1px solid #ffffff; padding-right: 20px; // overflow: auto; } .course-control{ //内容控制区域 - width: 420px; + width: 420px; + } + } + + @media screen and (max-width: 1200px) { + .course-playbox, + .course-infobox { + flex-direction: column; + } + .course-player, + .course-info { + min-width: 100%; + padding-right: 0; + } + .course-control, + .course-teacher { + width: 100%; + margin-top: 20px; } } .course-infobox { @@ -1934,13 +1955,10 @@ } .player-box { - position: absolute; - // top: 62px; - // left: 184px; - width: 300px; - left: 50%; - top: 50%; - transform: translate(-50%, -50%); + position: relative; + width: 100%; + max-width: 300px; + margin: 20px auto; height: 187px; background: rgba(74, 74, 74, .5); border-radius: 33px; @@ -2083,6 +2101,7 @@ } .course-interact { + flex: 1; // 20%高度 height: 54px; // padding-top: 10px; // padding-right: 10px;