Home  >  Q&A  >  body text

css - The pop-up window displayed by the right mouse button is absolute. Left and top are the clientX and Y clicked by the mouse. In IE, bottom is auto.

Problem description:
I wrote a right-click display menu event written by jq, which is a pop-up window when the mouse clicks somewhere and the pop-up window is displayed in the corresponding position
The specific code is as follows:
css:

JS to display the pop-up window

I don’t know if anyone has encountered this before. Please give me a solution~~~~Thank you for your kindness

仅有的幸福仅有的幸福2713 days ago1185

reply all(3)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-05-16 13:38:45

    The second problem is solved
    The bug caused by the js loading order when using fis3 to merge js
    I reconfigured it
    On-demand loading is fine

    reply
    0
  • 我想大声告诉你

    我想大声告诉你2017-05-16 13:38:45

    You have used top and left to position the element without setting bottom. It is normal that you cannot get it. Just get top.

    reply
    0
  • 给我你的怀抱

    给我你的怀抱2017-05-16 13:38:45

    Return to default value auto is right because you didn't set it. Just get the bottom coordinates through top + height.

    reply
    0
  • Cancelreply