找回密码
 立即注册

QQ登录

只需一步,快速开始

dexteryao 讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2021-6-29 11:28  /   查看:2777  /  回复:0

SpreadJS提供通过使用不同css的方式切换风格,例如下图为Excel 2013的风格,主体为白色,选中文字为绿色,状态栏为绿色。
image.png109006041.png

有用户觉得绿色的状态栏有些突兀,希望使用excel2016colorful中白色的状态栏样式。那只要将excel2016colorful中关于statusBar的样式复制出来就可以了
image.png587268371.png


  1. <style>
  2.         /* status bar start */
  3. .gc-statusbar {
  4.   width: 100%;
  5.   height: 100%;
  6.   background: #F3F2F1;
  7.   font-size: 8pt;
  8.   color: #505050;
  9.   font-family: "Segoe UI", Calibri, Thonburi, Arial, Verdana, sans-serif, "Mongolian Baiti", "Microsoft Yi Baiti", "Javanese Text";
  10.   position: relative;
  11.   user-select: none;
  12.   cursor: default;
  13.   overflow: hidden;
  14. }

  15. .gc-statusbar-menu-host {
  16.   position: relative;
  17. }

  18. .gc-statusbar-statusitem-container {
  19.   width: auto;
  20.   height: 100%;
  21. }

  22. .gc-statusbar-zoom-panel {
  23.   width: 30px;
  24.   height: 100%;
  25.   cursor: default;
  26.   font-size: 8pt;
  27.   color: #505050;
  28.   display: inline-block;
  29. }

  30. .gc-statusbar-slider-btn-container {
  31.   display: inline-block;
  32.   vertical-align: middle;
  33.   margin-right: 3px;
  34. }

  35. .gc-statusbar-slider-btn-container:hover {
  36.   background-color: #bbb5b5;
  37. }

  38. .gc-statusbar-slider-btn-container:active {
  39.   background-color: #a1a0a0;
  40. }

  41. .gc-statusbar-slider-btn {
  42.   width: 16px;
  43.   height: 25px;
  44.   background-image: url(data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxkZWZzPjxzdHlsZS8+PC9kZWZzPjxwYXRoIGQ9Ik04NjMuNzQ1IDU0NGgtNzAwLjMyYy0xNy42NjYgMC0zMi4wMDItMTQuMzM1LTMyLjAwMi0zMnMxNC4zMzYtMzIgMzIuMDAxLTMyaDcwMC4zMmMxNy42OTYgMCAzMiAxNC4zMzUgMzIgMzJzLTE0LjMwNCAzMi0zMiAzMnoiLz48L3N2Zz4=);
  45.   background-size: 16px 16px;
  46.   background-repeat: no-repeat;
  47.   background-position: center;
  48. }

  49. .gc-statusbar-slider-add-btn-container {
  50.   display: inline-block;
  51.   vertical-align: top;
  52. }

  53. .gc-statusbar-slider-add-btn-container:hover {
  54.   background-color: #bbb5b5;
  55. }

  56. .gc-statusbar-slider-add-btn-container:active {
  57.   background-color: #a1a0a0;
  58. }

  59. .gc-statusbar-slider-add-btn {
  60.   width: 16px;
  61.   height: 25px;
  62.   background-image: url(data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxkZWZzPjxzdHlsZS8+PC9kZWZzPjxwYXRoIGQ9Ik04NjMuMzI4IDQ4MS4zNGwtMzE3LjM0NC4xVjE2Mi44MThjMC0xNy42NjUtMTQuMzM2LTMyLjAwMS0zMi0zMi4wMDFzLTMyIDE0LjMzNi0zMiAzMnYzMTguNDAxbC0zMjIuMzY4LS4xNzdoLS4wOTdjLTE3LjYzMiAwLTMxLjkzNSAxNC4yNC0zMiAzMS45MDQtLjA5NyAxNy42NjUgMTQuMjA4IDMyLjAzMiAzMS44NzEgMzIuMDk2bDMyMi41OTMuMTc3djMxOS4xNjdjMCAxNy42OTYgMTQuMzM2IDMyLjAwMSAzMS45OTkgMzIuMDAxczMyLTE0LjMwMyAzMi0zMlY1NDUuNDRsMzE3LjA4OC0uMWguMTI4YzE3LjYzMiAwIDMxLjkzNS0xNC4yNCAzMi0zMS45MDVzLTE0LjIzOC0zMi4wMzEtMzEuODctMzIuMDk1eiIvPjwvc3ZnPg==);
  63.   background-size: 16px 16px;
  64.   background-repeat: no-repeat;
  65.   background-position: center;
  66. }

  67. .gc-statusbar-slider-back-progress {
  68.   width: 120px;
  69.   height: 1px;
  70.   background: #505050;
  71.   display: inline-block;
  72.   vertical-align: top;
  73. }

  74. .gc-statusbar-slider-back {
  75.   display: inline-block;
  76. }

  77. .gc-statusbar-slider-middle-line {
  78.   width: 1px;
  79.   height: 8px;
  80.   background: #505050;
  81.   display: inline-block;
  82.   position: relative;
  83.   vertical-align: top;
  84.   top: 9px;
  85. }

  86. .gc-statusbar-slider-drag-bar {
  87.   width: 4px;
  88.   height: 10px;
  89.   background: #505050;
  90.   display: inline-block;
  91.   position: relative;
  92.   vertical-align: top;
  93.   top: 8px;
  94. }

  95. .gc-statusbar-contextmenu-check {
  96.   width: 6px;
  97.   height: 10px;
  98.   margin: 0 0 0 5px;
  99.   border-style: solid;
  100.   border-color: #222222;
  101.   border-width: 0 2px 2px 0;
  102.   transform: rotateZ(45deg);
  103.   content: "";
  104. }

  105. .gc-statusbar-contextmenu-check-container {
  106.   width: 12px;
  107.   height: 12px;
  108.   display: inline-block;
  109. }

  110. .gc-statusbar-contextmenu-content {
  111.   display: inline-block;
  112.   color: #444444;
  113.   margin: 0 5px 0 15px;
  114. }

  115. .gc-statusbar-contextmenu-status {
  116.   float: right;
  117.   color: #444444;
  118.   vertical-align: middle;
  119. }

  120.         </style>
复制代码






0 个回复

您需要登录后才可以回帖 登录 | 立即注册
返回顶部