dongtanlin0765 2015-12-08 06:28
浏览 50

Magnific Popup未加载到页面的特定部分

I'm trying call a popup with a link and using Magnific Popup to achieve the same. The code is working properly on test conditions but during integration to main project, it refuses to open.

The code I'm using to call the popup is as follows

<a class="popup-modal" href="#callflow">Open Open Popup</a>

And it works perfectly while running standalone. I am trying to integrate this with the following dynamic code fragment.

<td id="data_column_new" class="xcol" style="background-color:<?=$colour;?>" width=50>
<a href="javascript:popup('popUpDiv','<?=$dataset['orderid'];?>','<?=$followdate;?>',
'<?=$dataset['sales_status'];?>','<?=$dataset['sremark'];?>','<?=$id;?>','<?=$closuredate;?>');">
<img src="<?=$generalVars['IMAGE_ROOT']?>editIcon.gif" id="<?=$id;?>" />
</a>
&nbsp;&nbsp;

<a class="popup-modal" href="#callflow">Open Popup</a>

&nbsp;&nbsp;
<a href="javascript:showSalesTransHistory('<?=base64_encode($dataset['orderid']);?>')" 
style="color:#003399;text-decoration:none">
<?=$dataset['sales_status'];?>
</a>

But while clicking link this time, it gives nothing but a change in url(adding #callflow as per the link). Strangely, the same link works in other parts of program. What prevents my popup from loading on this specific fragment?

  • 写回答

1条回答 默认 最新

  • douna2633 2016-06-28 12:35
    关注

    Simply set Z-index to the maximum for your Magnific Popup. As far as css is concerned it should be z-index issue. And also please check if your Background is transparent. Happy Coding :)

    评论

报告相同问题?

悬赏问题

  • ¥15 用windows做服务的同志有吗
  • ¥60 求一个简单的网页(标签-安全|关键词-上传)
  • ¥35 lstm时间序列共享单车预测,loss值优化,参数优化算法
  • ¥15 基于卷积神经网络的声纹识别
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 一直显示正在等待HID—ISP