Google表单集成使移动设备上无可点击

时间:2018-10-18 01:34:15

标签: html5 sass ruby-on-rails-5 google-form

我有一个用scss / html编写的非常简单的粘性标头和一个google联系人表格。标头可在台式机和移动设备上完美运行,但移动联系人页面上除外。在页面上滚动后,或在表单上选择/输入信息后,除了Google表单以外,别无选择。我也在使用turbolinks。

编辑:我发现,在这种情况下,如果将标题链接按住的时间比标准电话屏幕点击时间长一点,则只能选择标题链接。

这是我的SCSS:

.topnav {
  overflow: hidden;
  background-color: $white;
  opacity: 0.8;
  position: fixed;
  width: 100%;
  z-index: 9999;
}

.topnav a {
  float: center;
  display: block;
  color: $black;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  &:hover {
    color: $gray;
  }
}

.active {
  background-color: #4CAF50;
  color: $black;
}


@media screen  {
  .topnav a:not(:last-child) {display: none;}
  .topnav a.icon {
    float: right;
    display: block;
  }
}

@media screen  {
  .topnav.responsive {position: fixed;}
  .topnav.responsive .icon {
    position: fixed;
    right: 0;
    top: 0;
    color: $black;
    &:hover {
      color: $gray;
    }
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}

.fa-2x {
  font-size: 2em !important;
}

这是导航的HTML:

<div class="topnav" id="myTopnav">
<div class="center">
    <a href="/">Home</a>
    <a href="/about">About</a>
    <a href="booking">Book your trip!</a> 
    <a href="/contact">Contact us!</a>
    <a href="/info">I'm interested, whats next?</a>

  <a href="javascript:void(0);" class="icon" onclick="myFunction()">
    <i class=" fa fa-2x fa-bars"></i>
  </a>
  </div>
</div>

这是我的联系页面HTML:

<div class="body-padding"></div>
<div class="row home-padding">
    <div class="center mobile-padding">
        <h1 class="logo">Skyline Journey</h1>
        &nbsp;
        <iframe src="https://docs.google.com/forms/d/e/1FAIpQLSeSF3ThRYkBMcl7w_4x5A5oHu7ivOZa_RGdv4MXvZQ2tL-ZSQ/viewform?embedded=true" width="100%" height="1015" frameborder="0" marginheight="0" marginwidth="0">Loading...</iframe>
    </div>
</div>

0 个答案:

没有答案