lsc 2 tahun lalu
induk
melakukan
de6f9dba02
1 mengubah file dengan 62 tambahan dan 1 penghapusan
  1. 62 1
      src/components/tools/wangEnduit.vue

+ 62 - 1
src/components/tools/wangEnduit.vue

@@ -173,7 +173,7 @@ export default {
 };
 </script>  
   
-<style lang="css">
+<style lang="css" scoped>
 .editor {
   width: 100%;
   margin: 10px auto;
@@ -188,4 +188,65 @@ export default {
   height: 230px;
   overflow: auto;
 }
+
+/* table 样式 */
+.editor>>>table {
+  border-top: 1px solid #ccc;
+  border-left: 1px solid #ccc;
+}
+
+.editor>>>table td,
+.editor>>>table th {
+  border-bottom: 1px solid #ccc;
+  border-right: 1px solid #ccc;
+  padding: 20px 5px;
+}
+
+.editor>>>table th {
+  border-bottom: 2px solid #ccc;
+  text-align: center;
+}
+
+/* blockquote 样式 */
+.editor>>>blockquote {
+  display: block;
+  border-left: 8px solid #d0e5f2;
+  padding: 5px 10px;
+  margin: 10px 0;
+  line-height: 1.4;
+  font-size: 100%;
+  background-color: #f1f1f1;
+}
+
+/* code 样式 */
+.editor>>>code {
+  display: inline-block;
+  *display: inline;
+  *zoom: 1;
+  background-color: #f1f1f1;
+  border-radius: 3px;
+  padding: 3px 5px;
+  margin: 0 3px;
+}
+
+.editor>>>pre code {
+  display: block;
+}
+
+/* ul ol 样式 */
+.editor>>>ul,
+ol {
+  margin: 10px 0 10px 20px;
+}
+
+.editor>>>.w-e-text p, 
+.editor>>>.w-e-text h1, 
+.editor>>>.w-e-text h2, 
+.editor>>>.w-e-text h3, 
+.editor>>>.w-e-text h4, 
+.editor>>>.w-e-text h5, 
+.editor>>>.w-e-text table, 
+.editor>>>.w-e-text pre{
+  line-height: 1.7;
+}
 </style>