瀏覽代碼

增加打印css

visuddhinanda 5 年之前
父節點
當前提交
94ab1f59b7
共有 2 個文件被更改,包括 19 次插入0 次删除
  1. 18 0
      app/studio/css/print.css
  2. 1 0
      app/studio/editor.php

+ 18 - 0
app/studio/css/print.css

@@ -0,0 +1,18 @@
+.word_punc,
+.word {
+	page-break-inside: avoid;
+}
+
+.mean,
+.org,
+.om,
+.case {
+	page-break-after: avoid;
+}
+#toolbar {
+	display: none;
+}
+
+#left_tool_bar {
+	display: none;
+}

+ 1 - 0
app/studio/editor.php

@@ -26,6 +26,7 @@ else{$currDevice="computer";}
 	<link type="text/css" rel="stylesheet" href="css/style.css"/>
 	<link type="text/css" rel="stylesheet" href="css/color_day.css" id="colorchange" />
 	<link type="text/css" rel="stylesheet" href="css/style_mobile.css" media="screen and (max-width:800px)">
+	<link type="text/css" rel="stylesheet" href="css/print.css" media="print" />
 	<link href="https://fonts.googleapis.com/css2?family=Padauk:wght@400;700&display=swap" rel="stylesheet">
 	<link type="text/css" rel="stylesheet" href="../public/css/notify.css"/>
 	<?php