background-color: fuchsia;
}
input-with-select {
margin-top: 50px;
padding-top: 20px;
}
.el-scrollbar__wrap {
width: 100%;
height: 100%;
overflow-x: hidden;
}
.el-menu-item is-active {
padding-left: 10px;
}
.el-menu-vertical-demo {
background-color: #2e3238;
width: 80px;
height: 100%;
/*opacity:0.8;*/
}
.leftlist {
background-color: transparent;
width: 90px;
height: 700px;
overflow-x: hidden;
}
.avatar {
width: 45px;
height: 45px;
/*这个是图片和文字居中对齐*/
border-radius: 5px;
margin-top: 5px;
}
.el-scrollbar__wrap {
background-color: #E4E7ED;
}
#el-scrollbar {
background-color: #E4E7ED;
}
#list {
background-color: #E4E7ED;
width: 100%;
overflow-x: hidden;
li {
padding: 7px 15px;
border-bottom: 1px solid #E4E7ED;
cursor: pointer;
list-style: none;
color: #505458;
&:hover {
background-color: rgba(0, 0, 0, 0.07);
}
}
li.active {
/*注意这个是.不是冒号:*/
background-color: rgba(0, 0, 0, 0.1);
}
.avatar {
border-radius: 2px;
width: 30px;
height: 30px;
vertical-align: middle;
}
.name {
display: inline-block;
margin-left: 15px;
margin-top: 0px;
margin-bottom: 0px;
}
}
</style>
总结
到此这篇关于Vue列表实现滚动到指定位置样式改变的文章就介绍到这了,更多相关Vue列表实现滚动到指定位置样式改变内容请搜索软件开发网以前的文章或继续浏览下面的相关文章希望大家以后多多支持软件开发网!










