html - 表单输入不起作用?

标签 html css input

我有一个网站 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/

相关文章:

javascript - 在具有子输入元素的元素上使用jquery追加或删除会改变它们吗?

javascript - 正则表达式仅输入允许的模式(输入文本)

javascript - 通过链接使用 Rails 和 Javascript 复制到剪贴板

javascript - 第三个下拉菜单受第一个和第二个下拉菜单的影响

html - flex 订单属性、屏幕阅读器和辅助功能

html - 如何使用响应式网页设计为 div id 应用高度百分比

html - 向左浮动不适用于菜单

javascript - jQuery鼠标悬停在不同的上下文中调用不同的函数

html - R : CSS defined in header is not working inside leafletProxy 的传单

css - 定位Div容器