Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SMU-GDMU-CHINA
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
2024 Competition
SMU-GDMU-CHINA
Commits
97ee11f7
Commit
97ee11f7
authored
6 months ago
by
Kang Wang
Browse files
Options
Downloads
Patches
Plain Diff
Update file App.css
parent
077c81b7
No related branches found
No related tags found
No related merge requests found
Pipeline
#434475
passed
6 months ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/containers/App/App.css
+10
-20
10 additions, 20 deletions
src/containers/App/App.css
with
10 additions
and
20 deletions
src/containers/App/App.css
+
10
−
20
View file @
97ee11f7
...
...
@@ -711,30 +711,20 @@ footer a:hover {
/* formula style*/
div
.formula_content
{
div
.formula_content
{
position
:
relative
;
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
/* 垂直居中对齐公式和数字 */
max-width
:
80%
;
/* 公式宽度不超过容器的80% */
margin
:
0
auto
;
/* 居中公式容器 */
overflow-x
:
auto
;
/* 如果公式太长,允许水平滚动 */
white-space
:
nowrap
;
/* 防止公式内容换行 */
}
div
.formula_content
.formula_number
{
position
:
absolute
;
right
:
10%
;
right
:
10%
;
/* 序号距离右边10% */
top
:
50%
;
transform
:
translateY
(
-50%
);
}
#long_formula
.formula_content
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
margin
:
10px
0
;
max-width
:
80%
;
overflow-x
:
auto
;
white-space
:
nowrap
;
transform
:
translateY
(
-50%
);
/* 让数字垂直居中 */
}
#long_formula
.formula_number
{
margin-left
:
10px
;
flex-shrink
:
0
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment