首页课程样式

This commit is contained in:
zhaofang
2022-11-08 18:13:37 +08:00
parent d7132efc22
commit 70b14ab53a
7 changed files with 256 additions and 209 deletions

View File

@@ -7,10 +7,10 @@
mode="aspectFit "
:src="imageUrl"
@error="imageError"></image>
<text v-if="textShow && isTextShow == 1" class="text mid" style="color: #fff !important;" v-html="name"></text>
<!-- <text v-if="textShow && isTextShow == 1" class="text mid" style="color: #fff !important;" v-html="name"></text>
<text v-if="textShow && isTextShow ==2" class="text mini" style="color: #fff !important;" v-html="name"></text>
<text v-if="textShow && isTextShow ==3" class="text max" style="color: #fff !important;" v-html="name"></text>
<!-- <text v-if="textShow && isTextShow ==4" class="text end" style="color: #fff !important;" v-html="name"></text> -->
<text v-if="textShow && isTextShow ==3" class="text max" style="color: #fff !important;" v-html="name"></text> -->
<text class="text" style="color: #fff !important;" v-html="name"></text>
</view>
</template>
@@ -118,31 +118,35 @@
display: -webkit-box;
overflow: hidden;
text-overflow: ellipsis;
font-size: 1em;
top: 36%;
left: 7%;
-webkit-line-clamp: 2;
}
.mid{
font-size: 16upx;
top: 36%;
left: 7%;
-webkit-line-clamp: 1;
}
.mini{
font-size: 12upx;
top: 36%;
left: 7%;
-webkit-line-clamp: 2;
}
.max{
font-size: 38upx;
top: 36%;
left: 7%;
-webkit-line-clamp: 3;
}
.end{
font-size: 12upx;
top: 36%;
left: 7%;
-webkit-line-clamp: 2;
}
// .mid{
// font-size: 3em;
// top: 36%;
// left: 7%;
// -webkit-line-clamp: 1;
// }
// .mini{
// font-size: 3em;
// top: 36%;
// left: 7%;
// -webkit-line-clamp: 2;
// }
// .max{
// font-size: 3em;
// top: 36%;
// left: 7%;
// -webkit-line-clamp: 3;
// }
// .end{
// font-size: 3em;
// top: 36%;
// left: 7%;
// -webkit-line-clamp: 2;
// }
}
</style>