Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
AI_BOOK_TOOL
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
AI_BOOK_TOOL
Commits
113b44c6
Commit
113b44c6
authored
Aug 08, 2025
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 修复样式问题
parent
998aca24
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
18 deletions
+16
-18
index.css
play/index.css
+16
-18
No files found.
play/index.css
View file @
113b44c6
...
...
@@ -7,13 +7,14 @@
body
{
font-family
:
Arial
,
sans-serif
;
background-color
:
#f5f5f5
;
overflow
:
hidden
;
overflow
:
auto
;
}
#app
{
width
:
100vw
;
height
:
100vh
;
position
:
relative
;
overflow
:
hidden
;
}
.book-container
{
...
...
@@ -23,13 +24,16 @@ body {
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
overflow
:
hidden
;
}
.page-image
{
max-width
:
100%
;
max-height
:
100%
;
object-fit
:
contain
;
width
:
auto
;
height
:
auto
;
display
:
block
;
object-fit
:
contain
;
}
.image-container
{
...
...
@@ -39,6 +43,7 @@ body {
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
overflow
:
hidden
;
}
/* 多页显示样式 */
...
...
@@ -50,6 +55,9 @@ body {
flex
:
1
;
margin
:
0
;
padding
:
0
;
height
:
100%
;
min-height
:
0
;
min-width
:
0
;
}
/* 多页时的容器样式 */
...
...
@@ -75,29 +83,19 @@ body {
width
:
auto
;
}
.page-image
{
max-width
:
100%
;
max-height
:
100%
;
object-fit
:
contain
;
display
:
block
;
}
/* 多页时的样式 */
.page-image.multi-page
{
width
:
100%
;
height
:
100%
;
object-fit
:
contain
;
margin
:
0
;
padding
:
0
;
}
/* 当只有一页时的样式 */
.page-image
:not
(
.multi-page
)
{
max-width
:
100%
;
max-height
:
100%
;
width
:
auto
;
height
:
auto
;
margin
:
0
;
padding
:
0
;
object-fit
:
contain
;
}
.highlight-rect
{
position
:
absolute
;
border
:
2px
dashed
#007bff
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment