refactor the inline styles to dynamically set height, margin and overflow based on courseUrl existence, simplify fixed height auto style
@@ -1,5 +1,6 @@
<template>
- <div class="pb_content" style="height: auto; width: 94%; margin: 10px auto;background: unset;"
+ <div class="pb_content" style="width: 94%; background: unset;"
+ :style="{height: courseUrl ? '100vh' : 'auto', margin: courseUrl ? '0' : '10px auto', overflow: courseUrl ? 'hidden' : 'auto'}"
:class="[gotype? 'liyuan':'']"
>