From 97ee11f787947b0ed6de64885f6f321729347c9c Mon Sep 17 00:00:00 2001 From: Kang Wang <888666wang4286@gmail.com> Date: Sun, 22 Sep 2024 15:43:31 +0000 Subject: [PATCH] Update file App.css --- src/containers/App/App.css | 30 ++++++++++-------------------- 1 file changed, 10 insertions(+), 20 deletions(-) diff --git a/src/containers/App/App.css b/src/containers/App/App.css index aae31e2..0250ec3 100644 --- a/src/containers/App/App.css +++ b/src/containers/App/App.css @@ -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; -} - -- GitLab