Browse Source

feat: 调整断行

SongZihuan 3 years ago
parent
commit
c8cfb7e422
3 changed files with 5 additions and 12 deletions
  1. 4 0
      static/styles/base.css
  2. 1 5
      static/styles/docx/docx.css
  3. 0 7
      static/styles/index/index.css

+ 4 - 0
static/styles/base.css

@@ -1,3 +1,7 @@
+html {
+    word-break: break-word;
+}
+
 body {
     overflow-y: scroll;
     overflow-x: hidden;

+ 1 - 5
static/styles/docx/docx.css

@@ -3,10 +3,7 @@
     border-radius: 10px;
     border-width: 2px;
     border-style: solid;
-
-    min-width: 30em;
-    height: 4em;
-    line-height: 4em;
+    padding: 15px;
 }
 
 .docx {
@@ -20,7 +17,6 @@
 }
 
 .docx a, .docx-top a {
-    padding: 15px;
     color: black;
     text-decoration: none;
 }

+ 0 - 7
static/styles/index/index.css

@@ -3,13 +3,6 @@
     border-radius: 10px;
     border: 2px solid #0074D9;
     background-color: white;
-
-    min-width: 30em;
-    height: 4em;
-    line-height: 4em;
-}
-
-.docx a{
     padding: 15px;
 }