Bootstrap grid won#39;t work using xs columns(引导网格无法使用 xs 列)
问题描述
我在 Codepen 上开始了一个新项目,我正在使用引导程序.我已经有一段时间没有使用 CSS 了.网格系统对我没有响应,我找不到问题.我什至复制了一个可以工作的旧项目,但也没有工作..
I started a new project on Codepen and I'm using bootstrap.. It's been a while since I worked CSS. The grid sistem is not responding for me, I can't find the problem. I even copied a working older proyect and didn't work neither..
这是笔:http://codepen.io/Chantun/pen/NjgpaY
这是html:
<body>
  <div class="container-fluid">
    <div class="row">
      <div class="col-xs-offset-3 col-xs-6">
      <h1>FFC Calculator</h1> 
      </div>
    </div>
  </div>
</body>
这是 CSS:
body {
  position: relative;
  margin-top: 60px;
  font-family: Arimo, 'Roboto Slab', serif;
  background-color: #1a3a50;
  text-decoration:none;
  text-align: center;
  color: white;
}
h1 {
  position: relative;
  font-family: Pacifico, 'roboto slab', serif;
  font-size: 5vw;
}
这是头脑中的东西:
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="FCC calculator">
<meta name="keywords" content="FFC, calculator, Free, Codecamp">
<meta name="author" content="Santiago F. Rey">
<link href='https://fonts.googleapis.com/css?family=Roboto+Slab:400,700' rel='stylesheet' type='text/css'>
推荐答案
笔使用的是Bootstrap 4,CSS类名发生了变化.xs 中缀已在 4.x 中移除...
The pen is using Bootstrap 4, and the CSS class names have changed. The xs infix has been removed in 4.x...
col-xs-offset-3 现在是 offset-3col-xs-6 现在是 col-6
  <div class="container-fluid">
    <div class="row">
      <div class="offset-3 col-6">
      <h1>FFC Calculator</h1> 
      </div>
    </div>
  </div>
http://codepen.io/anon/pen/JNyqWX
这篇关于引导网格无法使用 xs 列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:引导网格无法使用 xs 列
				
        
 
            
        基础教程推荐
- 如何使用sencha Touch2在单页中显示列表和其他标签 2022-01-01
 - Node.js 有没有好的索引/搜索引擎? 2022-01-01
 - jQuery File Upload - 如何识别所有文件何时上传 2022-01-01
 - 什么是不使用 jQuery 的经验技术原因? 2022-01-01
 - 如何在特定日期之前获取消息? 2022-01-01
 - 如何使用 CSS 显示和隐藏 div? 2022-01-01
 - WatchKit 支持 html 吗?有没有像 UIWebview 这样的控制器? 2022-01-01
 - 为什么我在 Vue.js 中得到 ERR_CONNECTION_TIMED_OUT? 2022-01-01
 - Javascript 在多个元素上单击事件侦听器并获取目标 2022-01-01
 - 每次设置弹出窗口的焦点 2022-01-01
 
    	
    	
    	
    	
    	
    	
    	
    	
						
						
						
						
						
				
				
				
				