1、滚动条:
// 滚动条整体
.类名::-webkit-scrollbar {
width: 5px;
height: 100%;
}
// 滑块
.类名::-webkit-scrollbar-thumb {
width: 5px;
height: 60px;
background-color: #ccc;
border-radius: 3px;
}
隐藏滚动条:
.类名::-webkit-scrollbar {
display: none;
}
2、vue路由
页面加载速度缩短近一倍:
// ...
const home = () => import("@/views/index/home/home");
const organization = () => import("@/views/index/organization/organization.vue");
// ...
export default [
{ path: "/home", component: home },
{ path: "/organization ", component: organization },
]