简体   繁体   English

低于 100 像素的响应式 UI

[英]Responsive UI below 100px

What's the trick behind those websites that even if you open the developer tools and set the width below 100px everything is the same place and nothing is breaking?这些网站背后的技巧是什么,即使您打开开发人员工具并将宽度设置为低于 100 像素,一切都在同一个地方并且没有任何东西被破坏?

Should I create a wrapper for all the components and set a specific width and height?我应该为所有组件创建一个包装器并设置特定的宽度和高度吗?

在此处输入图像描述

You don't have to bother for such low resolutions, because there isn't any device that will need that.您不必为如此低的分辨率而烦恼,因为没有任何设备需要它。 The lowest resolution you should aim for is 320px .您应该瞄准的最低分辨率是320px

Read here for a better understanding.阅读此处以获得更好的理解。

it s not really a trick, it s just a min-width to the container that just prevents the div from shrinking further.这并不是一个真正的技巧,它只是容器的min-width ,它只是防止 div 进一步缩小。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM