소스 검색

修改文字换行

zy1125 1 년 전
부모
커밋
69d37f004b
2개의 변경된 파일20개의 추가작업 그리고 5개의 파일을 삭제
  1. 19 4
      src/assets/css/left.scss
  2. 1 1
      src/components/left.vue

+ 19 - 4
src/assets/css/left.scss

@@ -1,4 +1,5 @@
1
- .left {
1
+
2
+.left {
2 3
      position: absolute;
3 4
      width: 412px;
4 5
      height: 900px;
@@ -166,7 +167,7 @@
166 167
              ul {
167 168
                  display: flex;
168 169
                  list-style: none;
169
-                 height: 40px;
170
+                 height: 48px;
170 171
                  line-height: 40px;
171 172
                  font-size: 12px;
172 173
                  border-bottom: 1px dotted #fff;
@@ -180,7 +181,8 @@
180 181
                      display: flex;
181 182
                      width: 100%;
182 183
                      align-items: center;
183
-                     justify-content: space-around
184
+                     justify-content: space-around;
185
+                     word-wrap: break-word;
184 186
                  }
185 187
              }
186 188
 
@@ -267,4 +269,17 @@
267 269
  .scroll::-webkit-scrollbar-thumb {
268 270
      background-color: #999;
269 271
      border-radius: 3px;
270
- }
272
+ }
273
+
274
+ .jiaos{
275
+    // background-color: antiquewhite;
276
+    // color: #000;
277
+    // overflow-wrap: break-word; 
278
+    display: flex;
279
+    align-items: center;
280
+
281
+    text-align: center;
282
+    flex-wrap: wrap;
283
+    line-height: 16px;
284
+    
285
+}

+ 1 - 1
src/components/left.vue

@@ -50,7 +50,7 @@
50 50
                     </ul>
51 51
                     <div ref="testMain" style="height: 310px;overflow: scroll;" class="scroll">
52 52
                         <ul v-for="item in classRoom" @mouseenter="testMove" @mouseleave="testMend">
53
-                            <li> {{ item.class }} </li>
53
+                            <li class="jiaos"> {{ item.class }} </li>
54 54
                             <li>{{ item.status }}</li>
55 55
                             <li>{{ item.people }}</li>
56 56
                             <li>{{ item.percentage }}</li>