单击表格 TD 单元格内部时是否可以弹出 Facebox 对话框
当我单击 html 表格中的 td 内部时,我想弹出一个对话框。这可能吗?
I want to popup a dialog facebox when I click inside a td in an html table. Is this possible ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
TD 作为代理...
如果您在那里有一个链接,您可以执行以下操作:
当然,稍微修改该代码,您可以通过单击页面上的几乎任何其他内容来调用任何链接的 Facebox。基本上,
td
元素充当您的代理。如果您单击它,它会触发单击能够打开 Facebox 的链接。没有链接吗?没问题...
如果您没有可单击的链接,您可以创建一只苍蝇,触发单击,然后将其删除。
因此,假设我们一开始是:
我们将有一个 iframe 弹出窗口指向:
/css/style.css?52
。TD as a proxy...
If you have a link in there, you could do something like this:
Of course, modifying that code slightly, you could invoke facebox for any link by clicking nearly anything else on the page. Basically, the
td
element serves as a proxy for you. If you click it, it triggers a click on the link that will be capable of opening facebox up.No link? No problem...
If you don't have a link to click, you could create one of the fly, trigger a click, and then remove it.
So assume we started out with:
We will have an iframe popup pointing to:
/css/style.css?52
.