基础 6 揭示转变 [英] Foundation 6 Reveal shift

查看:22
本文介绍了基础 6 揭示转变的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用基础 6 显示模式窗口,当您单击以打开滚动条的一部分时,会离开我的固定导航所在的位置并将内容向右移动约 5 到 10 像素

<a class="button" data-open="exampleModal1">查看用户</a><!-- 这是第一个模态--><div class="reveal" id="exampleModal1" data-reveal><h1>太棒了!</h1><p class="lead">用户列表!</p><button class="close-button" data-close aria-label="关闭显示" type="button"><span aria-hidden="true">x</span>

解决方案

This is a known issue, see Discussion 此处.我使用以下 Foundation CSS 覆盖解决方案:

body.is-reveal-open {overflow: auto !important;高度:自动;位置:相对;}.reveal-overlay {溢出:初始!重要;位置:绝对;}

I am using foundation 6 reveal modal window and when you click to open part of the scroll bar leaves where my fixed nav is and shifts content to the right about 5 to 10 px

<a class="button" data-open="exampleModal1">View users</a>


<!-- This is the first modal -->
<div class="reveal" id="exampleModal1" data-reveal>
  <h1>Awesome!</h1>
  <p class="lead">Users List!</p>  
  <button class="close-button" data-close aria-label="Close reveal" type="button">
    <span aria-hidden="true">x</span>
  </button>
</div>

解决方案

This is a know issue, see discussion here. I use the following Foundation CSS overwrite solution:

body.is-reveal-open {overflow: auto !important; height: auto; position: relative;}
.reveal-overlay {overflow: initial !important; position: absolute;}

这篇关于基础 6 揭示转变的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆