提交 814f59a6 authored 作者: lihuihui's avatar lihuihui

修改样式

上级 9810b30c
...@@ -29,9 +29,16 @@ ...@@ -29,9 +29,16 @@
<span> <span>
{{ item.title }} {{ item.title }}
</span> </span>
<div class="more" v-if="list.length - 1 == index"> <template v-if="list.length >= 4">
<div class="more" v-if="index == 3">
<router-link to="/news">更多</router-link> <router-link to="/news">更多</router-link>
</div> </div>
</template>
<template>
<div class="more" v-if="list.length == index">
<router-link to="/news">更多</router-link>
</div>
</template>
</li> </li>
</router-link> </router-link>
</template> </template>
...@@ -276,6 +283,10 @@ export default { ...@@ -276,6 +283,10 @@ export default {
span{ span{
font-size: 18px; font-size: 18px;
color: #666666; color: #666666;
width: 510px;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap
} }
.more{ .more{
font-size: 18px; font-size: 18px;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论