我正在开发一个引导网站http://soygarota.com/blog/public
我检查了几次代码,添加了bootstrap.min.css,bootstrap.min.js和jquery,但由于某种原因,当我使用移动设备或Google Inspector时,标题导航不会崩溃。
以下是我的标题导航
的代码<div class="masthead hidden-sm">
<img src="{{ asset('images/layout/header.JPG') }}" class="img-responsive logo-header-img"/>
</div>
<div class="navbar navbar-inverse text-center sin-bordes" role="navigation">
<div class="container-fluid text-center">
<div class="navbar-header text-center">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="collapse navbar-collapse text-center
">
<ul class="nav navbar-nav text-center">
<li><a href="{{ Route('front.index') }}" class="HeaderLink">HOME</a></li>
<li><a href="{{route('front.search.category', 'INSPIRATION')}}" class="HeaderLink">INSPIRATION</a></li>
<li><a href="{{route('front.search.category', 'LIFESTYLE')}}" class="HeaderLink">LIFESTYLE</a></li>
<li><a href="{{route('front.search.category', 'FASHION')}}" class="HeaderLink">FASHION</a></li>
<li><a href="{{ route('front.about') }}" class="HeaderLink">ABOUT</a></li>
<li><a href="{{ route('front.contact') }}" class="HeaderLink">CONTACT</a></li>
</ul>
<div class="col-sm-3 col-md-3 pull-right">
{!! Form::open(['route' => 'front.index', 'method' => 'GET', 'class' => 'navbar-form','role' => 'search']) !!}
<div class="input-group">
<div class="input-group-btn">
<button class="btn btn-default" type="submit" id="SearchInput"><i class="glyphicon glyphicon-search" id="SearchIcon"></i></button>
</div>
<input type="text" class="form-control" placeholder="SEARCH" name="srch_term" id="srch_term">
</div>
{!! Form::close() !!}
</div>
</div><!--/.nav-collapse -->
</div>
</div>
任何帮助都会非常感谢,提前谢谢
答案 0 :(得分:2)
嘿,请尝试在头标中设置:
if [[ $(wget -S --spider http://yoursite 2>&1 | grep 'HTTP/1.1 200 OK') ]]; \
then echo "true"; fi
如果您想了解更多有关其工作原理的信息,请查看此内容 here