Home >Web Front-end >HTML Tutorial >Today I encountered a very strange lia click problem and solved it myself_HTML/Xhtml_Webpage Production

Today I encountered a very strange lia click problem and solved it myself_HTML/Xhtml_Webpage Production

WBOY
WBOYOriginal
2016-05-16 16:37:051311browse

...Well, today I was going to make a pop-up window.

The task assigned to me by the background php is already very simple for me because I have done it no less than three times. Well, the key is to know the principle of pop-up windows.


Click .youkeli to pop up .youkelogin, click .close1 in the pop-up window to close the pop-up window and return to the page.

Of course the problem I am talking about is not here, but that I gave youkeli to li. As a result, when I clicked the close button, I couldn't close it and kept switching between black and non-black screens. I was speechless.

After trying for a long time, I finally found the reason, so I added the .youkeli class to A. The result was successful and can be closed.

I originally wanted to find an expert to solve it, but later I found out the reason myself.

The summary is that the li click effect is always so bad. In addition, the href should be ###, a dead link, not #, which jumps to the top, so this is also a detail.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn