|
@@ -11,7 +11,7 @@
|
|
|
<div v-for="(i,index) in alldata[5]" :key="index" class="hotConA">
|
|
|
<div class="hotConAA">
|
|
|
<span>{{ index + 1 }}</span>
|
|
|
- <div>{{ i.title }}</div>
|
|
|
+ <div class="hotConAATxt">{{ i.title }}</div>
|
|
|
</div>
|
|
|
<div style="color: #3072D8;">{{ i.opennum }}次</div>
|
|
|
</div>
|
|
@@ -26,7 +26,7 @@
|
|
|
<div v-for="(i,index) in alldata[4]" :key="index" class="hotConA">
|
|
|
<div class="hotConAA">
|
|
|
<span>{{ index + 1 }}</span>
|
|
|
- <div>{{ i.title }}</div>
|
|
|
+ <div class="hotConAATxt">{{ i.title }}</div>
|
|
|
</div>
|
|
|
<div style="color: #3072D8;">{{ i.num }}次</div>
|
|
|
</div>
|
|
@@ -237,4 +237,12 @@ export default {
|
|
|
background: #0358D2;
|
|
|
border-radius: 3px;
|
|
|
}
|
|
|
+.hotConAATxt{
|
|
|
+ -webkit-line-clamp: 1;
|
|
|
+ display: -webkit-box;
|
|
|
+ -webkit-box-orient: vertical;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ width: 100%;
|
|
|
+}
|
|
|
</style>
|