Explorar el Código

标题样式调整

zhangmin hace 2 años
padre
commit
8f63fd6487
Se han modificado 2 ficheros con 4 adiciones y 4 borrados
  1. 2 1
      bookdetail.html
  2. 2 3
      css/main.css

+ 2 - 1
bookdetail.html

@@ -249,7 +249,8 @@
 					if (!CurrFontSize) {
 						CurrFontSize = 18;
 					}
-					let html = "<br/><h4 style='text-align: center; font-size: " + CurrFontSize + "px'>" + jsonObj.t + "</h4>";
+					TitleFontSize = CurrFontSize + 6;
+					let html = "<br/><br/><br/><br/><br/><h4 style='font-size: " + TitleFontSize + "px'>" + jsonObj.t + "</h4><br/>";
 					if (jsonObj.ct) {
 						let hLevel = 4;
 						for (let i = 0; i < jsonObj.ct.length; i++) {

+ 2 - 3
css/main.css

@@ -8,11 +8,10 @@ body {
 }
 
 .Content h4 {
-	font-size: 20px;
+	font-size: 24px;
 	margin: 0 0 1em 0;
 	padding-bottom: 5px;
 	letter-spacing: 2px;
-	border-bottom: solid 1px #736357;
 	color: #000;
 }
 
@@ -20,7 +19,7 @@ p {
 	text-indent: 2em;
 	font-size: 18px;
 	text-align: justify;
-	line-height: 23px;
+	line-height: 33px;
 	padding-bottom: 5px;
 	color: #000;
 }