【发布时间】:2020-11-23 12:33:06
【问题描述】:
我正在尝试在 html/css 中制作一些响应式布局。我有一个自动页边距,网站内容占宽度的 60%。当我调整窗口大小时,边距正在缓慢缩小。我想达到类似 Spotify - Here is the link to the polish Spotify website 的效果。所以我需要的只是在调整窗口大小的同时加速边距缩小。我该如何处理?
【问题讨论】:
标签: html css margin collapse shrink
我正在尝试在 html/css 中制作一些响应式布局。我有一个自动页边距,网站内容占宽度的 60%。当我调整窗口大小时,边距正在缓慢缩小。我想达到类似 Spotify - Here is the link to the polish Spotify website 的效果。所以我需要的只是在调整窗口大小的同时加速边距缩小。我该如何处理?
【问题讨论】:
标签: html css margin collapse shrink
您必须使用基本上检查屏幕宽度的媒体查询,一旦达到该宽度,您可以将边距设置为您想要的任何值。
【讨论】: