用Javascript激活Foundation 6 Reveal模式

时间:2018-07-27 09:16:28

标签: javascript zurb-foundation zurb-foundation-6

我目前正在通过以下方式激活Foundation 6 Reveal模式:

<p><button class="button" data-open="exampleModal1">Click me for a modal</button></p>

    <div class="reveal" id="exampleModal1" data-reveal>

      <h1>Awesome. I Have It.</h1>

      <p class="lead">Your couch. It is mine.</p>

      <p>I'm a cool paragraph that lives inside of an even cooler modal. Wins!</p>

      <button class="close-button" data-close aria-label="Close modal" type="button">

        <span aria-hidden="true">&times;</span>

      </button>

    </div> 

我该如何更改上述代码以使用Javascript激活它?

谢谢!

0 个答案:

没有答案