<template>
|
<div class="blog-container ">
|
<div>
|
<span class="blog-right-side-portion-title title-remark">{{title}}</span>
|
</div>
|
<div class="blog-scroll show-line">
|
<div class="blog-right-side-meta " v-for="item in list">
|
<div>
|
<a href="#"> <span class="blog-display-hide-content">{{item.name}}</span></a>
|
</div>
|
</div>
|
</div>
|
</div>
|
|
</template>
|
|
<script>
|
export default {
|
props: {
|
title: "",
|
list: ""
|
},
|
data() {
|
return {
|
|
}
|
}
|
}
|
</script>
|
|
</script>
|
|
<style lang="less">
|
/*右边的部分*/
|
|
.blog-right-side-portion-title {
|
display: block;
|
font-size: 15px;
|
padding-bottom: 8px;
|
|
}
|
|
span.title-remark::after {
|
content: "(按字母索引)";
|
color: #999;
|
font-size: 10px;
|
}
|
|
.blog-right-side-meta span {
|
/*word-break: keep-all;*/
|
/*word-wrap: break-word;*/
|
color: #999;
|
font-size: 13px;
|
line-height: 17px;
|
display: block;
|
overflow: hidden;
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
/* normal文本换行*/
|
|
word-break: keep-all;
|
// transition-property: background-color;
|
// transition-duration: .2s;
|
// transition-timing-function: ease-in-out;
|
// transition-delay: 0s;
|
}
|
|
div .blog-right-side-meta a span:hover {
|
background: #262a30;;
|
color: #fff;
|
white-space: normal;
|
word-break: break-word;
|
/*可以换行 white-space CSS 属性是用来设置如何处理元素中的空白。*/
|
height: 20%;
|
z-index: 600;
|
}
|
</style>
|