Skip to content

Commit e47ba64

Browse files
committed
fix: 宽度自适应
1 parent 31a5fac commit e47ba64

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

site/components/Banner/Banner.module.less

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -301,15 +301,11 @@
301301
}
302302

303303
div.listContainer {
304-
position: absolute;
305-
left: 112px;
306-
right: 112px;
307-
width: calc(100vw - 224px);
304+
width: 80vw;
308305
min-width: 760px;
309-
310-
@media (max-width: 1023px) {
311-
left: 24px;
312-
right: 24px;
313-
width: calc(100vw - 48px);
306+
margin-right: auto;
307+
margin-left: auto;
308+
@media (min-width: 2700px) {
309+
width: 2100px;
314310
}
315311
}

0 commit comments

Comments
 (0)