我有一个网站 www.edigitalnepal.com/exam/ .当我在那里登录时,我无法点击输入字段,因为它变得不可点击。但我不知道那里有什么问题。你能帮我解决这个问题吗?
要登录,请在两个字段中输入student。
我的输入框 html 代码是-
<div class="search">
<input type="text" class="form-control" placeholder="Search for..." onkeyup="Search(this.value)">
<i class="fa fa-search"></i>
<div class="search-result">
<ul class="list-unstyled nomargin" id="search_result_show">
</ul>
</div>
</div>
最佳答案
你的 body 有一个类 .modal-open
但在你的 style.css 文件中你是这样设置的:
.modal-open .login-popup {
pointer-events: none;
}
根据 developer.mozilla.org 中的文档“无”值是这样工作的:
The element is never the target of mouse events; however, mouse events may target its descendant elements if those descendants have pointer-events set to some other value. In these circumstances, mouse events will trigger event listeners on this parent element as appropriate on their way to/from the descendant during the event capture/bubble phases.
所以我猜你要么删除这个值,要么改变它,要么为你的输入设置另一个值。
关于html - 表单输入不起作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32906786/