소스 검색

样式优化

任一存 2 년 전
부모
커밋
44ca79d3a2
4개의 변경된 파일22개의 추가작업 그리고 5개의 파일을 삭제
  1. 7 1
      public/chart.html
  2. BIN
      public/chart4app-bg.jpg
  3. 14 3
      public/chart4app.html
  4. 1 1
      src/views/History.vue

+ 7 - 1
public/chart.html

@@ -169,6 +169,9 @@
               label: {
                 position: 'right',
                 show: true,
+                color: '#fff',
+                fontSize: '20px',
+                fontWeight: 'bold',
               }
             },
             // 高亮状态的图形样式
@@ -176,7 +179,10 @@
               scale: false,
               label: {
                 position: 'right',
-                show: true
+                show: true,
+                color: '#fff',
+                fontSize: '20px',
+                fontWidth: 'bold',
               }
             },
             // 图表是否可以移动、缩放

BIN
public/chart4app-bg.jpg


+ 14 - 3
public/chart4app.html

@@ -13,11 +13,16 @@
     box-sizing: border-box;
   }
   body {
-    background-color: #04060a;
+    height: 100%;
+    margin: 0;
+    background-image: url(./chart4app-bg.jpg);
+    background-size: cover;
+    background-repeat: no-repeat;
+    background-position: center center;
   }
 </style>
 
-<body style="height: 100%; margin: 0">
+<body>
   <div id="container" style="height: 100%"></div>
   <script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
   <script type="text/javascript" src="https://cdn.staticfile.org/echarts/5.4.2/echarts.min.js"></script>
@@ -172,6 +177,9 @@
               label: {
                 position: 'right',
                 show: true,
+                color: '#fff',
+                fontSize: '20px',
+                fontWeight: 'bold',
               }
             },
             // 高亮状态的图形样式
@@ -179,7 +187,10 @@
               scale: false,
               label: {
                 position: 'right',
-                show: true
+                show: true,
+                color: '#fff',
+                fontSize: '20px',
+                fontWidth: 'bold',
               }
             },
             // 图表是否可以移动、缩放

+ 1 - 1
src/views/History.vue

@@ -413,7 +413,7 @@ export default {
         &.right {
           right: 0;
           background-image: url(@/assets/images/arrow_right.png);
-        background-position: right center;
+          background-position: right center;
         }
       }
     }