duannuci4008 2019-05-05 10:50
浏览 47
已采纳

添加?ref后弹出框不显示

i am having an issue with my codes for a project i've been working on for the past few days..

<a  href='#popup1?QStrUId=<?php echo $row["emp_no"];?>'>

if i remove the "?QStrUId=<?php echo $row["emp_no"];?>" from the href tag, the popup works but if i add the previous line, the popup don't work..

Basically am trying to transfer the information <?php echo $row["emp_no"];?> to the pop up box so that i can continue forward using the emp_no and the popup is all css, no javascript or jquery has been used to open, display or close the pop up box.

Any idea about why this is happening?

Edit* this is the popup box that should appear..

<div id="popup1" class="overlay">
<div class="popup">
<h2>Employee Information</h2>
<a class="close" href="#">&times;</a>
<div class="content">
    Thank to pop me out of that button, but now i'm done so you can close this window.
</div>
</div>
</div>

**Link to the original codes which ive used. https://codepen.io/imprakash/pen/GgNMXO

  • 写回答

1条回答 默认 最新

  • douyasihefu6214 2019-05-05 14:05
    关注

    You must to change id of your popup too. Your link id and popup id are different. That's a problem.

    <div id="popup1?QStrUId=<?php echo $row["emp_no"];?>" class="overlay">
        <div class="popup">
        <h2>Employee Information</h2>
        <a class="close" href="#">&times;</a>
        <div class="content">
            Thank to pop me out of that button, but now i'm done so you can close this 
            window.
        </div>
    </div>
    

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 CST怎么把天线放在座椅环境中并仿真
  • ¥15 任务A:大数据平台搭建(容器环境)怎么做呢?
  • ¥15 r语言神经网络自变量重要性分析
  • ¥15 基于双目测规则物体尺寸
  • ¥15 wegame打不开英雄联盟
  • ¥15 公司的电脑,win10系统自带远程协助,访问家里个人电脑,提示出现内部错误,各种常规的设置都已经尝试,感觉公司对此功能进行了限制(我们是集团公司)
  • ¥15 救!ENVI5.6深度学习初始化模型报错怎么办?
  • ¥30 eclipse开启服务后,网页无法打开
  • ¥30 雷达辐射源信号参考模型
  • ¥15 html+css+js如何实现这样子的效果?