css 移动设备运行不正常

css for mobile device not working well

我正在使用 bootstrap,我已使用 this example 将其转换为 wordpress 主题。 网站 url 是 fuenterprises.com 我为导航栏定制的 css 是:

.navbar-wrapper {
  margin-top: 33px;
}

.navbar-wrapper .navbar {
  margin: 0 0 0 100px;
  width: 91.3%;
}

.navbar-brand-logo {
  float: left;
  font-size: 18px;
  height: 50px;
  line-height: 20px;
  padding: 1px 0 0 0;
}

.featurette-heading {
  margin-top: 0;
}

.featurette-heading a {
  color: inherit;
}

.img-responsive, .thumbnail > img, .thumbnail a > img, .carousel-inner > .item > img, .carousel-inner > .item > a > img {
  display: block;
  height: auto;
  max-width: 100%;
  border: 1px dashed;
}

现在,当我在移动设备上打开网站时,没有按预期显示菜单,请看截图:

问题是如何在移动设备中禁用图像?

用容器包起来

<div class="disable-on-mobile"> <!-- my image --> </div>

并添加一个带有媒体查询的 CSS(取决于你想隐藏它的时间改变宽度)

@media (max-width: 900px){

  .disable-on-mobile {
    display: none;
  }

}

您也可以只将 class 添加到您的图片中...