[英]Twitter Bootstrap missing responsive classes
I cannot for the life of me find the following classes which are mentioned from the following link: http://getbootstrap.com/css/#responsive-utilities 我一生无法找到以下链接中提到的以下类: http : //getbootstrap.com/css/#sensitive-utilities
The classes in question are these: 有问题的类是:
.visible-xs-*
.visible-sm-*
.visible-md-*
.visible-lg-*
They are not within the bootstrap.css
file. 它们不在
bootstrap.css
文件中。
Update 更新资料
Extract of the Bootstrap css file of the version information. 版本信息的Bootstrap css文件的摘录。 I hope it helps narrow things down.
我希望它可以帮助缩小范围。
/*!
* Bootstrap v3.3.2 (http://getbootstrap.com)
* Copyright 2011-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
Update 2 更新2
I just wanted to make sure I'm using the above classes correctly. 我只是想确保我正确使用了上述类。
<div class="visible-xs-*">This should show on phones only</div>
Is this the correct way in doing it or am I doing it wrong? 这是正确的做法还是我做错了?
remember * at here will be 1 of this: 记住*在这里将是其中之一:
block
inline
inline-block
As of v3.2.0, the
.visible-*-*
classes for each breakpoint come in three variations, one for each CSS display property value listed below.从v3.2.0开始,每个断点的
.visible-*-*
类分为三个变体,一个用于下面列出的每个CSS显示属性值。
Group of classes CSS display
.visible-*-block display: block;
.visible-*-inline display: inline;
.visible-*-inline-block display: inline-block;
example: .visible-xs-block
, .visible-xs-inline
, .visible-xs-inline-block
. 例如:
.visible-xs-block
, .visible-xs-inline
, .visible-xs-inline-block
。 see more in table Group of classes http://getbootstrap.com/css/#responsive-utilities 有关更多信息,请参见表组类 http://getbootstrap.com/css/#sensitive-utilities
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.