Selaa lähdekoodia

fix:解决项目描述和文章描述无法自动换行的BUG

lifei6671 7 vuotta sitten
vanhempi
sitoutus
75ac5601f6
1 muutettua tiedostoa jossa 4 lisäystä ja 1 poistoa
  1. 4 1
      static/css/main.css

+ 4 - 1
static/css/main.css

@@ -337,6 +337,8 @@ textarea{
 .book-list .list-item .desc-text{
     font-size: 12px;
     margin: 5px;
+    word-wrap: break-word;
+    word-break: break-word;
 }
 .book-list .list-item .info{
     font-size: 12px;
@@ -759,11 +761,12 @@ textarea{
 
 .ui.items>.item>.content>.description {
     margin-top: .6em;
-    max-width: auto;
     font-size: 1em;
     line-height: 1.4285em;
     color: rgba(0,0,0,.87);
     min-height: 40px;
+    word-wrap: break-word;
+    word-break: break-word;
 }
 
 .ui.items>.item>.content p {