Browse Source

Merge pull request #300 from visuddhinanda:master

优化打印边距
visuddhinanda 5 years ago
parent
commit
9855926f72
2 changed files with 9 additions and 1 deletions
  1. 3 1
      app/article/index.php
  2. 6 0
      app/article/print.css

+ 3 - 1
app/article/index.php

@@ -102,6 +102,8 @@ require_once "../pcdl/html_head.php";
 	}
 	#contents_div{
 		flex:7;
+		padding: 0 1em 0 30px;
+		width:70vw;
 	}
 	#contents{
 		min-height: 400px;
@@ -273,7 +275,7 @@ require_once "../pcdl/html_head.php";
 	<div id="article_author"><?php echo $_local->gui->author; ?></div>
 </div>
 <div id="contents_view">
-	<div id="contents_div" style="padding: 0 1em 0 30px;width:70vw;">
+	<div id="contents_div">
 		<div id="contents">
 		<?php echo $_local->gui->loading; ?>...
 		</div>

+ 6 - 0
app/article/print.css

@@ -14,3 +14,9 @@ header {
 note .ref {
 	display: none;
 }
+note {
+	padding: 0;
+}
+#contents_div {
+	padding: 0;
+}