mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-08 18:36:47 +08:00
首页课程样式
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user