JS:Boxy,如何补间新创建的对话框
我正在使用 http://onehackoranother.com/projects/jquery/boxy/ 来创建弹出窗口。例如,我的代码如下所示:
JS
$('.boxy').boxy();
<a id="popuplink" class="boxy" href="#popup" title="Sample popup">Popup</a>
<div id="popup" style="display:none">
Some big content
</div>
问题是我的内容有点大,所以我对 boxy 居中的方式不满意。我想将其显示在页面更高的位置。所以我想在创建对话框后对其进行补间。我该怎么做呢。 (我在文档中看到相应的函数,但不明白如何以及从哪里调用它)
I'm using http://onehackoranother.com/projects/jquery/boxy/ to create popups. e.g. my code looks like this:
JS
$('.boxy').boxy();
<a id="popuplink" class="boxy" href="#popup" title="Sample popup">Popup</a>
<div id="popup" style="display:none">
Some big content
</div>
The problem is that my content is a bit big, so I am not happy about how boxy centers it. I want to display it higher on the page. So I want to tween the dialog box after it's created. How do I do that. (I see correspondent function in documentation, but don't understand how and from which place to call it)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
向链接添加了事件监听器,并在获取事件后创建了新的四四方方的容器。抱歉问了愚蠢的问题
Added event listener to the link and created new boxy container after getting the event. Sorry for asking stupid questions