简体   繁体   English

将Facebox“关闭按钮”放在右上角而不是右下角

[英]Putting the Facebox “close button” on top right as opposed to bottom right

I would like to position the "close" button on the top right as opposed to bottom right. 我想将“关闭”按钮放在右上角而不是右下角。

I am sure this is something you folks have done before, and I do not think it is right to reinvent the wheel =) 我确信这是你们以前做过的事情,而且我认为重新发明轮子是不正确的=)

I just modified the HTML template in facebox.js to this: 我刚刚将facebox.js中的HTML模板修改为:

  faceboxHtml  : '\
<div id="facebox" style="display:none;"> \
  <div class="popup"> \
    <table> \
      <tbody> \
        <tr> \
          <td class="tl"/><td class="b"/><td class="tr"/> \
        </tr> \
        <tr> \
          <td class="b"/> \
          <td class="body"> \
            <div class="footer"> \
              <a href="#" class="close"> \
                <img src="/facebox/closelabel.gif" title="close" class="close_image" /> \
              </a> \
            </div> \
            <div class="content"> \
            </div> \
          </td> \
          <td class="b"/> \
        </tr> \
        <tr> \
          <td class="bl"/><td class="b"/><td class="br"/> \
        </tr> \
      </tbody> \
    </table> \
  </div> \
</div>'

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

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