diff --git a/Bootstrap-v5/Components/Offcanvas.css b/Bootstrap-v5/Components/Offcanvas.css index 00c30d32c154d52ce0d863d18088da0688ecb2a7..7c31669f4ffd2269b1ff6f07afc631dc0a2d99e4 100644 --- a/Bootstrap-v5/Components/Offcanvas.css +++ b/Bootstrap-v5/Components/Offcanvas.css @@ -4,8 +4,8 @@ position: static; visibility: visible; transform: none; - transform:none; - border: 0; +/* transition: none;*/ + border: 0; } #aaa { /* @@ -32,9 +32,12 @@ #offcanvasExample { position: fixed; visibility: hidden; -/* transform: translateX(100%);*/ +/* transition: var(--bs-offcanvas-transition);*/ + transition: transform 0.15s ease-in-out; + transform: translateX(-100%); } .offcanvas.show { visibility: visible !important; + transform: translateX(0%) !important; } } \ No newline at end of file diff --git a/Bootstrap-v5/Components/Offcanvas.html b/Bootstrap-v5/Components/Offcanvas.html index 66fcff0af50fccb4affdb52aa13e780ccfdaaae9..6a027b29b2e1c4e9123d79d83702184496e04740 100644 --- a/Bootstrap-v5/Components/Offcanvas.html +++ b/Bootstrap-v5/Components/Offcanvas.html @@ -5,47 +5,48 @@ Offcanvas - - - - - + + + - - Link with href - - + Link with href + offcanvas - -
-

这是布局 P 标签的内容

- -
此处显示 id "aaa" 的内容
diff --git a/demoadmin/layout/layout2.css b/demoadmin/layout/layout2.css index 440f654d0c9cea0bf455c26aa24ef6c38e67bb5c..fb5813d211f9a00c2f64d029e5b89cd13aebd4af 100644 --- a/demoadmin/layout/layout2.css +++ b/demoadmin/layout/layout2.css @@ -3,13 +3,14 @@ #nav-fluid{ position: sticky; top: 0px; + z-index: 1 } #nav-wraper { height: 50px; } #slider-wraper { - flex-basis: 12rem; + flex-basis: 15rem; flex-grow: 0; background-color: aquamarine; height: calc(100vh - 50px); diff --git a/demoadmin/layout/layout2.html b/demoadmin/layout/layout2.html index b1f23c15c9a0e8c5a03754c81439482cfda5fd1f..2928d0de95582cedc14ee6d940cb2145a87a9f8f 100644 --- a/demoadmin/layout/layout2.html +++ b/demoadmin/layout/layout2.html @@ -25,7 +25,46 @@
-
此处显示 slider 的内容
+
+
+
+

+ +

+
+
+ This is the first item's accordion body. It is shown by default, until the collapse plugin adds the appropriate classes that we use to style each element. These classes control the overall appearance, as well as the showing and hiding via CSS transitions. You can modify any of this with custom CSS or overriding our default variables. It's also worth noting that just about any HTML can go within the .accordion-body, though the transition does limit overflow. +
+
+
+
+

+ +

+
+
+ This is the second item's accordion body. It is hidden by default, until the collapse plugin adds the appropriate classes that we use to style each element. These classes control the overall appearance, as well as the showing and hiding via CSS transitions. You can modify any of this with custom CSS or overriding our default variables. It's also worth noting that just about any HTML can go within the .accordion-body, though the transition does limit overflow. +
+
+
+
+

+ +

+
+
+ This is the third item's accordion body. It is hidden by default, until the collapse plugin adds the appropriate classes that we use to style each element. These classes control the overall appearance, as well as the showing and hiding via CSS transitions. You can modify any of this with custom CSS or overriding our default variables. It's also worth noting that just about any HTML can go within the .accordion-body, though the transition does limit overflow. +
+
+
+
+

这是布局 P 标签的内容

这是布局 P 标签的内容