fix overlap左右50%中圖疊加

This commit is contained in:
2026-05-20 00:46:42 +08:00
parent a29e01bcb1
commit e3d3d8585e
+40 -21
View File
@@ -54,9 +54,10 @@
overflow: hidden; overflow: hidden;
} }
/* overlap-style:維持重疊 float不套列卡/flex 等高 */ /* overlap-style:維持左右 float中欄脫離排版不推擠左右 */
body.ebook-ssg2-page.totoga2-page #totoga2-reader .container.overlap-style { body.ebook-ssg2-page.totoga2-page #totoga2-reader .container.overlap-style {
display: block; display: block;
position: relative;
padding: 0; padding: 0;
background: transparent; background: transparent;
border: none; border: none;
@@ -443,28 +444,33 @@
/* border-left: 5px solid var(--primary); */ /* border-left: 5px solid var(--primary); */
} }
/* overlap 三圖相疊(維持 float;欄位 margin 左右皆有,不鎖 img 單邊 margin) */ /* overlap:左/右欄各 50%float);中圖 absolute 置中放大、不佔欄寬 */
body.ebook-ssg2-page.totoga2-page #totoga2-reader .container.overlap-style .container31 { body.ebook-ssg2-page.totoga2-page #totoga2-reader .container.overlap-style .container31 {
float: left; float: left;
width: 30%; width: 50%;
position: relative; position: relative;
z-index: 1; z-index: 1;
} box-sizing: border-box;
body.ebook-ssg2-page.totoga2-page #totoga2-reader .container.overlap-style .container32 {
float: left;
width: 46%;
position: relative;
z-index: 2;
margin-left: -12%;
margin-right: -8%;
} }
body.ebook-ssg2-page.totoga2-page #totoga2-reader .container.overlap-style .container33 { body.ebook-ssg2-page.totoga2-page #totoga2-reader .container.overlap-style .container33 {
float: left; float: right;
width: 30%; width: 50%;
position: relative; position: relative;
z-index: 1; z-index: 1;
box-sizing: border-box;
}
body.ebook-ssg2-page.totoga2-page #totoga2-reader .container.overlap-style .container32 {
position: absolute;
left: 50%;
top: 0;
transform: translateX(-50%);
width: auto;
max-width: none;
z-index: 3;
margin: 0;
pointer-events: none;
} }
body.ebook-ssg2-page.totoga2-page #totoga2-reader .container.overlap-style::after { body.ebook-ssg2-page.totoga2-page #totoga2-reader .container.overlap-style::after {
@@ -473,18 +479,27 @@
clear: both; clear: both;
} }
body.ebook-ssg2-page.totoga2-page #totoga2-reader .container.overlap-style img { body.ebook-ssg2-page.totoga2-page #totoga2-reader .container.overlap-style .container31 img,
body.ebook-ssg2-page.totoga2-page #totoga2-reader .container.overlap-style .container33 img {
width: 100%;
max-width: 100%;
height: auto;
display: block;
border-radius: 0; border-radius: 0;
overflow: visible; overflow: visible;
} }
body.ebook-ssg2-page.totoga2-page #totoga2-reader .container.overlap-style .container32 img { body.ebook-ssg2-page.totoga2-page #totoga2-reader .container.overlap-style .container32 img {
width: 42%; width: auto;
max-width: none; max-width: min(52vw, 22rem);
height: auto; height: auto;
display: block; display: block;
position: relative; margin: 0;
z-index: 2; transform: scale(1.15);
transform-origin: center top;
border-radius: 0;
overflow: visible;
pointer-events: auto;
} }
</style> </style>
<link rel="stylesheet" href="split-nav.css"> <link rel="stylesheet" href="split-nav.css">
@@ -722,10 +737,10 @@
</div> </div>
</div> </div>
<div class="container"> <div class="container">
<div class="container21"> <div class="container31">
<img src="/totoga2/readable/13-2哥得自己畫!.jpeg" alt="哥得自己畫截圖"> <img src="/totoga2/readable/13-2哥得自己畫!.jpeg" alt="哥得自己畫截圖">
</div> </div>
<div class="container22"> <div class="container32">
<section class="ebook-section"> <section class="ebook-section">
<h3>隊長幫腔聯手逗弄</h3> <h3>隊長幫腔聯手逗弄</h3>
<p class="ebook-intro-lead"> <p class="ebook-intro-lead">
@@ -737,6 +752,10 @@
</p> </p>
</section> </section>
</div> </div>
<div class="container33">
<img src="/totoga2/readable/13-31779025232670.jpg" alt="哥得自己畫截圖">
</div>
</div> </div>
<div class="container overlap-style"> <div class="container overlap-style">
<div class="container31"> <div class="container31">