html - 如何制作骨架样板模板 'unresponsive'

标签 html css responsive-design fluid-layout skeleton-css-boilerplate

大家好,我正在执行一个不同类型的可用移动网站元素,其中包括在移动设备上显示的响应式网站和标准桌面网站。现在我已经制作了基于响应式骨架的网站,我需要制作一个“无响应”的 HTML 网站。

与其经历制作 HTML 布局的过程,我是否可以从骨架框架中移除任何代码块,从而移除它的响应功能?并使其不再响应?因此会在移动浏览器上显示普通的桌面版本吗?

抱歉,如果这看起来像一个愚蠢的问题,但我想我还是要问。 谢谢

最佳答案

这是骨架的 skeleton.css 的响应式网格 css:

.container {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box; }
.column,
.columns {
  width: 100%;
  float: left;
  box-sizing: border-box; }

/* For devices larger than 400px */
@media (min-width: 400px) {
  .container {
    width: 85%;
    padding: 0; }
}

/* For devices larger than 550px */
@media (min-width: 550px) {
  .container {
    width: 80%; }
  .column,
  .columns {
    margin-left: 4%; }
  .column:first-child,
  .columns:first-child {
    margin-left: 0; }

  .one.column,
  .one.columns                    { width: 4.66666666667%; }
  .two.columns                    { width: 13.3333333333%; }
  .three.columns                  { width: 22%;            }
  .four.columns                   { width: 30.6666666667%; }
  .five.columns                   { width: 39.3333333333%; }
  .six.columns                    { width: 48%;            }
  .seven.columns                  { width: 56.6666666667%; }
  .eight.columns                  { width: 65.3333333333%; }
  .nine.columns                   { width: 74.0%;          }
  .ten.columns                    { width: 82.6666666667%; }
  .eleven.columns                 { width: 91.3333333333%; }
  .twelve.columns                 { width: 100%; margin-left: 0; }

  .one-third.column               { width: 30.6666666667%; }
  .two-thirds.column              { width: 65.3333333333%; }

  .one-half.column                { width: 48%; }

  /* Offsets */
  .offset-by-one.column,
  .offset-by-one.columns          { margin-left: 8.66666666667%; }
  .offset-by-two.column,
  .offset-by-two.columns          { margin-left: 17.3333333333%; }
  .offset-by-three.column,
  .offset-by-three.columns        { margin-left: 26%;            }
  .offset-by-four.column,
  .offset-by-four.columns         { margin-left: 34.6666666667%; }
  .offset-by-five.column,
  .offset-by-five.columns         { margin-left: 43.3333333333%; }
  .offset-by-six.column,
  .offset-by-six.columns          { margin-left: 52%;            }
  .offset-by-seven.column,
  .offset-by-seven.columns        { margin-left: 60.6666666667%; }
  .offset-by-eight.column,
  .offset-by-eight.columns        { margin-left: 69.3333333333%; }
  .offset-by-nine.column,
  .offset-by-nine.columns         { margin-left: 78.0%;          }
  .offset-by-ten.column,
  .offset-by-ten.columns          { margin-left: 86.6666666667%; }
  .offset-by-eleven.column,
  .offset-by-eleven.columns       { margin-left: 95.3333333333%; }

  .offset-by-one-third.column,
  .offset-by-one-third.columns    { margin-left: 34.6666666667%; }
  .offset-by-two-thirds.column,
  .offset-by-two-thirds.columns   { margin-left: 69.3333333333%; }

  .offset-by-one-half.column,
  .offset-by-one-half.columns     { margin-left: 52%; }

}

如果你想让它不响应,把它改成这样:

.container {
  position: relative;
  width: 80%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.column,
    .columns {
  width: 100%;
  float: left;
  box-sizing: border-box;
  margin-left: 4%;
}

.column:first-child,
      .columns:first-child {
  margin-left: 0;
}

.one.column,
      .one.columns {
  width: 4.66666666667%;
}

.two.columns {
  width: 13.3333333333%;
}

.three.columns {
  width: 22%;
}

.four.columns {
  width: 30.6666666667%;
}

.five.columns {
  width: 39.3333333333%;
}

.six.columns {
  width: 48%;
}

.seven.columns {
  width: 56.6666666667%;
}

.eight.columns {
  width: 65.3333333333%;
}

.nine.columns {
  width: 74.0%;
}

.ten.columns {
  width: 82.6666666667%;
}

.eleven.columns {
  width: 91.3333333333%;
}

.twelve.columns {
  width: 100%;
  margin-left: 0;
}

.one-third.column {
  width: 30.6666666667%;
}

.two-thirds.column {
  width: 65.3333333333%;
}

.one-half.column {
  width: 48%;
}

      /* Offsets */
.offset-by-one.column,
      .offset-by-one.columns {
  margin-left: 8.66666666667%;
}

.offset-by-two.column,
      .offset-by-two.columns {
  margin-left: 17.3333333333%;
}

.offset-by-three.column,
      .offset-by-three.columns {
  margin-left: 26%;
}

.offset-by-four.column,
      .offset-by-four.columns {
  margin-left: 34.6666666667%;
}

.offset-by-five.column,
      .offset-by-five.columns {
  margin-left: 43.3333333333%;
}

.offset-by-six.column,
      .offset-by-six.columns {
  margin-left: 52%;
}

.offset-by-seven.column,
      .offset-by-seven.columns {
  margin-left: 60.6666666667%;
}

.offset-by-eight.column,
      .offset-by-eight.columns {
  margin-left: 69.3333333333%;
}

.offset-by-nine.column,
      .offset-by-nine.columns {
  margin-left: 78.0%;
}

.offset-by-ten.column,
      .offset-by-ten.columns {
  margin-left: 86.6666666667%;
}

.offset-by-eleven.column,
      .offset-by-eleven.columns {
  margin-left: 95.3333333333%;
}

.offset-by-one-third.column,
      .offset-by-one-third.columns {
  margin-left: 34.6666666667%;
}

.offset-by-two-thirds.column,
      .offset-by-two-thirds.columns {
  margin-left: 69.3333333333%;
}

.offset-by-one-half.column,
      .offset-by-one-half.columns {
  margin-left: 52%;
}

关于html - 如何制作骨架样板模板 'unresponsive',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28953474/

相关文章:

jQuery:对于每组对象,追加到不同的 div

javascript - 在 dom 准备好之前交换 css 文件,因为我不想让我的页面轻弹?

html - 将页脚放在页面底部

javascript - DIV高度为另一个div下剩余空间的100%

css - 如何使用固定父 div 为浏览器的整个宽度提供页脚背景颜色

html - 如何应用缩放效果,但不在悬停时

html - 使用 CSS 控制 DIV 的宽度和浏览器高度

javascript - 全屏在 IE 中不工作

css - 如何使 Canvas 响应

html - 适用于所有不同设备的响应式网页设计