Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/joomla/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 移除IE中输入框中的光标_Javascript_Html_Css_Angularjs_Internet Explorer - Fatal编程技术网

Javascript 移除IE中输入框中的光标

Javascript 移除IE中输入框中的光标,javascript,html,css,angularjs,internet-explorer,Javascript,Html,Css,Angularjs,Internet Explorer,我想这可能是一个IE病毒,它让我发疯。点击escape关闭模式窗口后,左上角会出现一个闪烁的光标。这只发生在IE中,不幸的是,这是唯一允许我开发的浏览器。我尝试使用ng类并使用display设置不同的类:none,但这不起作用 重新创建的步骤: 在IE中打开plnkr 开始键入任何内容,以查看带有输入框的模式窗口弹出 点击ESC按钮并查看左上角以查看闪烁的光标 HTML 欢迎来到堆栈溢出!请阅读,环顾四周,并通读,特别是与您的问题相关的任何代码必须在您的问题中,而不仅仅是链接。链接会腐烂,使问

我想这可能是一个IE病毒,它让我发疯。点击escape关闭模式窗口后,左上角会出现一个闪烁的光标。这只发生在IE中,不幸的是,这是唯一允许我开发的浏览器。我尝试使用ng类并使用display设置不同的类:none,但这不起作用

重新创建的步骤:

  • 在IE中打开plnkr
  • 开始键入任何内容,以查看带有输入框的模式窗口弹出
  • 点击ESC按钮并查看左上角以查看闪烁的光标
  • HTML


    欢迎来到堆栈溢出!请阅读,环顾四周,并通读,特别是与您的问题相关的任何代码必须在您的问题中,而不仅仅是链接。链接会腐烂,使问题及其答案在将来对人们毫无用处,人们不应该跟随一些随机链接来帮助你。如果这个问题没有意义,没有链接就无法回答,那么这个网站就不适合。因为我已经做了研究并创建了一个plunker来模拟我的问题。请再次阅读上面的第一条评论。必须在问题中,而不仅仅是链接。请同时阅读帮助,其中说明了相同的内容。还有一个方便的
    按钮(堆栈片段,可运行的HTML/JS/CSS就在站点上,有一个下拉菜单,可以添加角度)。可能重复(搜索
    时禁用ie文本区域光标时的第一个结果
    <div class="ng-modal" ng-show="modal.isOpen">
      <div class="ng-modal-overlay">
        <div class="ng-modal-dialog">
          <div class="ng-modal-dialog-content">
            <input type="text" ng-model="modal.query" class="ng-modal-input">
          </div>
        </div>
      </div>
    </div>
    
    .ng-modal {
      position: fixed;
      z-index: 9999;
      top: 0;
      left: 0;
      ....
    }
    .ng-modal-overlay {
      position: absolute;
      z-index: 9999;
      ....
    }
    .ng-modal-dialog {
      z-index: 10000;
      position: absolute;
      top: 50%;
      left: 50%;
      ....
    }
    .ng-modal-dialog-content {
      overflow: hidden;
      height: 100%;
    }
    .ng-modal-input {
      margin: 0px;
      padding: 0px;
      line-height: 72px;
      font-size: 60px;
      width: 100%;
      border: none;
      background-color: gray;
    }