我正在使用 Twitter Bootstrap 制作一个移动响应网站。当在移动设备上查看网站时,我想完全隐藏顶部导航栏。有人知道如何做到这一点吗?
最简单的方法是使用响应式实用程序类.hidden-phone
and .hidden-tablet
<div class="navbar hidden-tablet hidden-phone">
您还可以使用媒体查询,例如..
@media (max-width: 767px) {
.navbar{
display:none;
}
}
有关响应式课程的更多信息,请参见此处:http://twitter.github.io/bootstrap/scaffolding.html#responsive http://twitter.github.io/bootstrap/scaffolding.html#responsive
Demo http://bootply.com/61803
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)