修复:将前端宽屏布局改为响应式
This commit is contained in:
@@ -457,7 +457,6 @@ const handleProductClick = (item: any) => {
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
border-radius: 16px;
|
||||
object-fit: stretch;
|
||||
}
|
||||
|
||||
/* 轮播指示器样式 */
|
||||
@@ -681,4 +680,38 @@ const handleProductClick = (item: any) => {
|
||||
color: #999;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
@media (min-width: 992px) {
|
||||
.header,
|
||||
.search-section,
|
||||
.section {
|
||||
max-width: var(--frontend-content-max-width);
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.banner-container {
|
||||
padding: 0 24px;
|
||||
}
|
||||
|
||||
.banner-carousel {
|
||||
aspect-ratio: 16 / 6;
|
||||
max-height: 340px;
|
||||
}
|
||||
|
||||
.horizontal-scroll {
|
||||
overflow: visible;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.product-card {
|
||||
flex: 1 1 calc(25% - 12px);
|
||||
width: calc(25% - 12px);
|
||||
min-width: 180px;
|
||||
}
|
||||
|
||||
.product-grid {
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user