如何在弹出窗口中显示带有颜色框的页面的特定部分而不显示整个页面?


How can I display a specific part of a page with color box without displaying the whole page in the pop up window?

好的,所以我有一个页面,我正在php代码中包含图表的工作,但同一页面还包含显示的表…

我怎样才能使它,所以我可以在同一页面上创建一个链接,这样当用户点击链接,我可以有一个弹出框只显示该页的图表..

<?php

echo" <a href="...."> click to see charts </a>";
chart code is below here //
?>

你可以参考下面的例子,它工作得很好

https://github.com/jackmoore/colorbox/blob/master/example1/index.html