Foundation 6 Reveal shift

孤街醉人 提交于 2019-12-25 08:43:47

问题


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>

回答1:


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;}


来源:https://stackoverflow.com/questions/41435055/foundation-6-reveal-shift

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!