简体   繁体   English

如何覆盖NyroModal包装器?

[英]How to Override NyroModal Wrapper?

How can I Override NyroModal Wrapper. 如何覆盖NyroModal包装器。

I dont want to override the css class, we need the ability TO ADD our divs instead of the native WRAPPER div. 我不想覆盖CSS类,我们需要能够添加div而不是本地WRAPPER div的功能。

On GitHub i found 2 functions: beforeShowCont and filledContent , but i dont know how to override the wrapper using these functions. GitHub上,我发现了2个函数: beforeShowContfilledContent ,但是我不知道如何使用这些函数重写包装器。

And I also found this article on code google , and this is exactly what i want to develop, but it doesnt say how. 而且我也在代码google上找到了这篇文章,这正是我想要开发的内容,但没有说明如何。

<table class="ctools-modal-content">
  <tr>
    <td class="popups-tl popups-border"></td>
    <td class="popups-t popups-border"></td>
    <td class="popups-tr popups-border"></td>
  </tr>
  <tr>
    <td class="popups-cl popups-border"></td>
    <td class="popups-c">
      <div class="popups-container">
        <div class="popups-title">
          <span id="modal-title" class="modal-title"></span>
          <span class="popups-close"><a class="close" href="#">Close</a></span>
          <div class="clear-block"></div>
        </div>
        <div id="modal-content" class="modal-content">HERE WOULD .wrapper OR #nyroModalContent GO</div>
        <div class="popups-buttons"></div>
        <div class="popups-footer"></div>
      </div>
    </td>
    <td class="popups-cr popups-border"></td>
  </tr>
  <tr>
    <td class="popups-bl popups-border"></td>
    <td class="popups-b popups-border"></td>
    <td class="popups-br popups-border"></td>
  </tr>
</table>

I refer the nyroModal code from here 我从这里引用nyroModal代码

If you want to override the wrapper class of it, you can do it by following way. 如果要覆盖它的包装器类,则可以通过以下方法来实现。

  • select the main container of the nyroModal. 选择nyroModal的主容器。
  • add the new style for its wrapper. 为包装器添加新样式。

    ie

    div#nyroModalFull div.wrapper{ /* your own style*/ } div#nyroModalFull div.wrapper {/ *您自己的样式* /}

  • load your own stylesheet after the nyroModal style 在nyroModal样式之后加载自己的样式表

I hope this will work for you 我希望这对你有用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM