0
我在这里使用了基本模式对话框http://www.ericmmartin.com/projects/simplemodal-demos/,并且在这个对话框的内部,我有一张图片,我想在它下面添加一个打印按钮。在jQuery上打印功能SimpleModal
我试过使用jqPrint,但它不起作用。有没有我错过的东西?
我弹出的对话框
<div id="popup_name" class="popup_block">
<div class="map"><img src="images/map.png"></div>
<br><a href="#" id="print"><img src="images/print.png"></a>
</div>
jqPrint
$("#print").click(function() {
$('.map').jqprint();
});
</script>
代码看起来不错..哪些浏览器是你使用.....并确保你关闭标记正确并打开
我觉得click事件没有得到触发尝试使用现场。
来源
2011-04-12 04:56:36
尝试,但仍然没有提示打印:( – doodoodukes 2011-04-12 06:28:08
@doodoodukes尝试在此功能内添加警报,并确保点击事件正在触发 – 2011-04-12 06:32:26