当前位置:   article > 正文

css 横向滚动条 el-menu 菜单横向滚动条_el-menu 横向滚动条

el-menu 横向滚动条
  1. <el-col :span="16" class="menuClass">
  2. <el-menu
  3. class="oneNav"
  4. mode="horizontal"
  5. background-color="#007ff5"
  6. text-color="#fff"
  7. active-text-color="#fff"
  8. router
  9. :default-active="defalutPath"
  10. style="border-bottom: none; text-decoration: none"
  11. >
  12. <!-- :default-active="$router.history.current.path" -->
  13. <el-menu-item index="/Index"
  14. ><i class="el-icon-s-home"></i><span>首页</span></el-menu-item
  15. >
  16. <el-menu-item index="/depIndex"
  17. ><i class="el-icon-s-home"></i><span>部门统计</span></el-menu-item
  18. >
  19. <el-menu-item index="/main"
  20. ><i class="el-icon-office-building"></i><span>曝光台</span></el-menu-item
  21. >
  22. <el-menu-item index="/jwdb/collection/list"
  23. ><i class="el-icon-edit-outline"></i>任务采集</el-menu-item
  24. >
  25. <el-menu-item index="/jwdb/distribute/list"
  26. ><i class="el-icon-document-checked"></i>任务处理</el-menu-item
  27. >
  28. <!--<el-menu-item index="/jwdcsj/superviseCollection/collectionUnit"
  29. ><i class="el-icon-edit-outline"></i>任务采集</el-menu-item
  30. >
  31. <el-menu-item index="/jwdcsj/distributeTask/pendingTaskList"
  32. ><i class="el-icon-document-checked"></i>任务处理</el-menu-item
  33. >-->
  34. <el-menu-item index="/onlineinspector"
  35. ><i class="el-icon-s-check"></i>在线督查</el-menu-item
  36. >
  37. <el-menu-item index="/onlineinspector2"
  38. ><i class="el-icon-s-check"></i>在线督查2</el-menu-item
  39. >
  40. <el-menu-item index="/pending"
  41. ><i class="el-icon-s-order"></i> 待办任务</el-menu-item
  42. >
  43. <el-menu-item index="/integral"
  44. ><i class="el-icon-coin"></i>积分管理</el-menu-item
  45. >
  46. <!-- <el-menu-item index="/query"><i class="el-icon-search"></i>在线查询</el-menu-item> -->
  47. <el-menu-item index="/onlineQuery/keywordsQuery"
  48. ><i class="el-icon-search"></i>在线查询</el-menu-item
  49. >
  50. <el-menu-item index="/unioninspector"
  51. ><i class="el-icon-collection"></i>学习资料</el-menu-item
  52. >
  53. <!-- <el-menu-item index="/bulletinBoard"><i class="el-icon-connection"></i>督查联盟</el-menu-item> -->
  54. <!-- <el-menu-item index="/screen"><i class="el-icon-connection"></i>驾驶舱</el-menu-item> -->
  55. <el-menu-item index="/notice/list"
  56. ><i class="el-icon-collection"></i>通知</el-menu-item
  57. >
  58. </el-menu>
  59. </el-col>
  1. <!--设置顶部菜单可滚动-->
  2. <style scoped>
  3. .menuClass ul {
  4. display: flex;
  5. overflow-x: hidden;
  6. overflow-y: hidden;
  7. z-index: 100;
  8. }
  9. .menuClass ul:hover {
  10. overflow-x: auto;
  11. }
  12. /*.menuClass ul li {
  13. flex: none;
  14. }*/
  15. /* 对于 Chrome 和 Safari 用户*/
  16. /* 设置滚动条的宽度 */
  17. ::-webkit-scrollbar {
  18. width: 10px;
  19. height: 10px;
  20. }
  21. /* 设置滚动条轨道的样式 */
  22. ::-webkit-scrollbar-track {
  23. background: rgb(239, 239, 239);
  24. border-radius: 2px;
  25. }
  26. /* 设置滚动条滑块的样式 */
  27. ::-webkit-scrollbar-thumb {
  28. background: #bfbfbf;
  29. border-radius: 10px;
  30. }
  31. ::-webkit-scrollbar-thumb:hover {
  32. background: #333;
  33. }
  34. ::-webkit-scrollbar-corner {
  35. background: #179a16;
  36. }
  37. /*对于 Firefox 用户 */
  38. * {
  39. /*控制滚动条的宽度 */
  40. scrollbar-width: thin;
  41. /*设置滑块和轨道的颜色 */
  42. scrollbar-color: rgb(239, 239, 239) #bfbfbf;
  43. }
  44. </style>

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/人工智能uu/article/detail/971942
推荐阅读
相关标签
  

闽ICP备14008679号