CSS-不建议使用所有引导程序断点?

查看variables.less(并通过谷歌搜索),似乎所有引导程序的断点都减少了变量。 它是否正确? 如果我们想基于引导程序的屏幕尺寸断点来分配样式,是否有人知道我们应该使用什么呢? 在LESS中使用Bootstrap v3.1.1。 谢谢。

//== Media queries breakpoints
//
//## Define the breakpoints at which your layout will change, adapting to different screen sizes.

// Extra small screen / phone
//** Deprecated `@screen-xs` as of v3.0.1
@screen-xs:                  480px;
//** Deprecated `@screen-xs-min` as of v3.2.0
@screen-xs-min:              @screen-xs;
//** Deprecated `@screen-phone` as of v3.0.1
@screen-phone:               @screen-xs-min;

// Small screen / tablet
//** Deprecated `@screen-sm` as of v3.0.1
@screen-sm:                  768px;
@screen-sm-min:              @screen-sm;
//** Deprecated `@screen-tablet` as of v3.0.1
@screen-tablet:              @screen-sm-min;

// Medium screen / desktop
//** Deprecated `@screen-md` as of v3.0.1
@screen-md:                  992px;
@screen-md-min:              @screen-md;
//** Deprecated `@screen-desktop` as of v3.0.1
@screen-desktop:             @screen-md-min;

// Large screen / wide desktop
//** Deprecated `@screen-lg` as of v3.0.1
@screen-lg:                  1200px;
@screen-lg-min:              @screen-lg;
//** Deprecated `@screen-lg-desktop` as of v3.0.1
@screen-lg-desktop:          @screen-lg-min;
launchoverit asked 2020-02-22T13:09:05Z
1个解决方案
43 votes

@ seven-phases-max所说的。 @screen-xs-min变量是您应该使用的变量。 不赞成使用其他方法。

不推荐使用@screen-xs-min,因为XS没有最小的屏幕尺寸(除非您希望计算1px),因为它是最小的断点。 (同样,LG没有最大宽度。)

cvrebert answered 2020-02-22T13:09:25Z
translate from https://stackoverflow.com:/questions/27240527/all-bootstrap-breakpoints-deprecated