Browse Source

修改预览页面的样式

sunyj 9 years ago
parent
commit
986aa9734d

+ 2 - 5
src/main/webapp/resources/css/preview2.css

@@ -4,8 +4,6 @@ body {
 }
 
 button {
-	width: 32px;
-	height: 32px;
 	border: 0;
 	background-color: #404040;
 	color: #fff;
@@ -16,18 +14,17 @@ button {
 	position: fixed;
 	width: 100%;
 	height: 32px;
+	line-height: 32px;
 	background-color: #404040;
 	color: #fff;
 }
 
 #toolbarViewerLeft {
-	height: 32px;
 	margin-left: 20px;
 	float: left;
 }
 
 #toolbarViewerRight {
-	height: 32px;
 	margin-right: 20px;
 	float: right;
 }
@@ -35,5 +32,5 @@ button {
 #viewerContainer {
 	text-align: center;
 	background-color: #505050;
-	padding: 50px;
+	padding: 50px 0px 10px 0px;
 }

+ 1 - 5
src/main/webapp/resources/js/preview2/app.js

@@ -36,11 +36,7 @@ $("#next").click(function() {
 
 // 打印
 $("#print").click(function() {
-	if (hiddenframe.src) {
-		hiddenframe.contentWindow.print();
-	} else {
-		window.document.write("Hidden pdf iframe did not load");
-	}
+	hiddenframe.contentWindow.print();
 });
 
 // 下载pdf