简体   繁体   English

引导程序未检测到col-lg和col-md屏幕尺寸之间的屏幕尺寸变化

[英]Bootstrap not detecting change in screen size between col-lg and col-md screen sizes

I am not able to figure out why this is happening, I am working on a fluid layout which is fluid till 1366px screen size and after that it is fixed, except header. 我无法弄清楚为什么会发生这种情况,我正在研究一种流畅的布局,该布局在屏幕尺寸为1366px之前都是可变的,在此之后固定不变(标题除外)。

Now if I change my screen size anywhere between 1200px to 1366px then it does not make any change in html elements and instead a horizontal scroll bar appears. 现在,如果我将屏幕尺寸更改为1200px至1366px之间,则它不会对html元素进行任何更改,而是会出现一个水平滚动条。 If I go beyond 1200px to anywhere till 300px or something it scales very well. 如果我将像素范围从1200px扩展到300px或以上,它将很好地扩展。 But I don't know why is it having issue between 1200 to 1366px screen size. 但我不知道为什么屏幕尺寸在1200至1366像素之间有问题。

ISSUE: I don't want horizontal scroll bar to come between 1200px to 1366px and make content scale accordingly, as it scales for other screen size. 问题:我不希望水平滚动条介于1200像素到1366像素之间,并相应地缩放内容,因为它可以缩放其他屏幕尺寸。

And this issue is not on a single page, it is on complete website. 这个问题不在单个页面上,而是在完整的网站上。 You can see this issue happening on this website Winni.in 您可以在此网站Winni.in上看到此问题的发生

Any idea, where I am going wrong? 任何想法,我要去哪里错了?

The issue appears because you have this declaration in your CSS 出现问题是因为您在CSS中有此声明

@media (min-width: 1200px)
  .container {
    width: 1330px;
  }
}

Which means that starting from screen width 1200, the div will be 1330px. 这意味着从屏幕宽度1200开始,div将为1330px。 Just change it to 1200px or 100%, depending what result you want to achieve. 只需将其更改为1200px或100%,具体取决于您要实现的结果。

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

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