From 3182ff9a1fc71b628e4f48dc28a99e99a7a4be00 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期一, 27 五月 2024 17:45:52 +0800 Subject: [PATCH] 优化 --- src/books/lifeCare/css/default.less | 241 ++++++++++++++++++++++++++++++++++++----------- 1 files changed, 184 insertions(+), 57 deletions(-) diff --git a/src/books/lifeCare/css/default.less b/src/books/lifeCare/css/default.less index a6d7338..68f329b 100644 --- a/src/books/lifeCare/css/default.less +++ b/src/books/lifeCare/css/default.less @@ -1,8 +1,13 @@ +.page-main { + width: 100%; + height: 100%; + overflow: auto; +} + .public-books { max-width: 816px; min-width: 375px; margin: 0 auto; - padding-bottom: 100px; border-color: #f49a4c; textarea:focus, @@ -16,6 +21,13 @@ text-indent: 2em; } + .prefaceImg { + width: 92% !important; + position: absolute; + left: 4%; + top: 4%; + } + input { width: 100%; border: 0 !important; @@ -23,10 +35,16 @@ outline: none; font-size: 16px; text-align: center; + white-space: pre-line; } - .page-content-box { - font-family: "瀹嬩綋", SimSun, sans-serif; + .chapter { + font-family: "瀹嬩綋"; + + .topImg { + padding-top: 0 !important; + margin-bottom: 2em; + } p input { width: 20px; @@ -34,43 +52,36 @@ .header { width: 100%; - height: 136px; - position: absolute; - left: 0; - top: 0; - z-index: 1001; + height: 100px; .pageHeader-first { width: 100%; - height: 136px; - position: relative; + height: 100%; + padding-top: 6%; .header-bj { width: 78%; - height: 115px; - border-left: 1px solid #dfb27d; - border-bottom: 1px solid #dfb27d; - position: absolute; - right: 30px; - top: 30px; + height: 100%; + border-left: 2px solid #dfb27d; + border-bottom: 2px solid #dfb27d; + margin-left: 18%; } .content { - background-color: #f49a4c; - width: 740px; - height: 35px; - position: absolute; - left: 25px; - top: 100px; + background-color: #F49A4C; + width: 91%; + height: 32%; display: flex; justify-content: flex-start; align-items: center; + margin-top: -6%; + margin-left: 3%; .pageStr { - width: 140px; color: #fff; - font-size: 28px; + font-size: 24px; text-align: center; + margin: 0 20px; } .title { @@ -79,14 +90,45 @@ align-items: center; color: #fff; font-size: 20px; + position: relative; img { height: 30px !important; margin-right: 20px; } + + .ztImg { + height: 40px !important; + margin-top: -4px; + } + } + } + + .zt1-content { + background-color: #f7b80a; + } + + .zt1-header-bj { + border-left-color: #a5c24f; + border-bottom-color: #a5c24f; + } + + + @media (max-width: 756px) { + .content { + margin-top: -12%; + + .title { + font-size: 18px; + } + + .pageStr { + font-size: 18px; + } } } } + .pageHeader-second { width: 100%; @@ -94,6 +136,7 @@ justify-content: center; align-items: center; flex-direction: column; + padding-top: 3%; .second-con { width: 90%; @@ -104,7 +147,7 @@ font-size: 20px; position: absolute; right: 36px; - top: 60px; + top: 80px; .second-left { width: 23px; @@ -138,36 +181,65 @@ font-size: 28px; color: #fff; } + + .zt1-pageNum { + background-color: #a5c24f; + } + + .zt1-pageStr { + color: #a5c24f; + } + } + } + + @media (max-width: 756px) { + .second-con { + font-size: 18px; + + .pageNum { + font-size: 18px !important; + } + } + } + + @media (max-width: 1024px) { + + .second-con { + right: 20px; + top: 75px; } } .borderLine { width: 93%; - height: 1px; + height: 2px; background-color: #f49a4c; margin-top: 105px; } + + .zt1-boderLine { + background-color: #a5c24f; + } } + } + + .textareaInput { + width: 100%; + padding: 8px; + box-sizing: border-box; + border: 1px solid #999; + font-size: 15px; + color: #000; + background-color: #eee; } .chapter01Table { width: 100%; - .textareaInput { - width: 100%; - padding: 8px; - box-sizing: border-box; - border: 1px solid #999; - font-size: 15px; - color: #000; - background-color: #eee; - } - .textareaInput:focus { border: 1px solid #999 !important; } } - .table111, .table112 { @@ -179,21 +251,21 @@ text-align: center; border: 1px solid #999; margin: 0; - padding: 2px 9px; + padding: 8px 9px; font-size: 16px; } tr td { border: 1px solid #999; text-align: center; - padding: 2px 0; + padding: 8px; overflow: hidden; + white-space: pre-line; } } .table112 { font-size: 16px; - tr th { width: 50px; @@ -209,6 +281,19 @@ } } + .table162 { + tr th { + padding: 8px 0; + } + + tr td { + border: 1px solid #999; + text-align: center; + padding: 15px 0; + overflow: hidden; + } + } + .bj-tip { display: flex; justify-content: space-around; @@ -220,7 +305,7 @@ position: absolute; top: -30px; left: 15px; - background-color: #FFF; + background-color: #fff; color: #f49a4c; font-weight: bold; font-size: 18px; @@ -241,6 +326,29 @@ padding: 12px 10px; box-sizing: border-box; padding-top: 30px; + font-family: '浠垮畫'; + font-weight: 700; + + + p { + margin-top: 0px; + } + + .p-text { + p { + + line-height: 22px; + font-weight: 700; + color: #666; + } + + div { + line-height: 22px; + font-size: 20px; + text-align: center; + padding-top: 10px; + } + } } .page-box { @@ -275,7 +383,7 @@ } .pdf-content { - padding: 0 5%; + padding: 5% 5%; box-sizing: border-box; } @@ -439,13 +547,16 @@ margin: 15px; } + .img-gn-zt { + width: 180px; + } + div.bodystyle { font-size: 18px; text-align: justify; padding: 10% 10%; - padding-top: 25%; - line-height: 30px; box-sizing: border-box; + font-family: '瀹嬩綋'; } div.bj { @@ -528,6 +639,15 @@ text-indent: 0em; } + .h5-zt { + font-size: 18px; + } + + .tip-specail { + border: 1px solid #f49a4c !important; + padding: 15px 15px; + } + p { margin-top: 1em; text-indent: 2em; @@ -547,6 +667,7 @@ margin-left: 0%; margin-right: 0%; text-indent: 0em; + color: #666; } .center1 { @@ -592,7 +713,7 @@ } h2 { - font-family: "瀹嬩綋"; + font-family: "FZLTZHJW"; font-weight: bold; font-size: 1.2em; margin-top: 0.2em; @@ -605,9 +726,11 @@ #b003, #b004, #b005, - #b006 { - position: absolute; - top: 0; + #b006, + #b007, + #b008, + #b009 { + margin-bottom: 100px; } h3 { @@ -620,12 +743,12 @@ } h4 { - font-family: "FZLTZHJW"; + font-family: "瀹嬩綋"; font-weight: bold; color: #f49a4c; font-size: 1.1em; margin-top: 0.2em; - margin-bottom: 1em; + margin-bottom: 40px; text-indent: 0em; } @@ -644,7 +767,7 @@ } .img-0 { - width: 60%; + width: 100%; } .imz { @@ -891,7 +1014,7 @@ } .img-gn { - height: 3.2em; + height: 45px; margin-bottom: -0.4em; } @@ -988,11 +1111,6 @@ margin-right: -1em; } - .block { - font-size: 18px; - line-height: 30px; - } - .bk-h3 { border: 3px solid #f49a4c; padding: 0.7em; @@ -1061,11 +1179,20 @@ } div.bk-qjms { + font-family: 'FZLTXIHJW'; border: 3px dotted #f49a4c; padding: 15px; margin-bottom: 2em; margin-top: 0.5em; position: relative; + + .block { + font-size: 18px; + line-height: 25px; + font-family: "浠垮畫"; + font-weight: 600; + color: #666; + } } p.bj1-qjms { -- Gitblit v1.9.1