当您将鼠标悬停在模式链接上时,隐藏浏览器状态栏上的链接

问题描述

我正试图在状态栏中禁用将鼠标悬停在突出显示上。我已经编写了这段JS代码。工作正常。但是问题出在Bootstrap 3 Modals上,它们坏了,无法正常工作,我该如何修改代码?有什么想法吗?

   $(document).ready(function () {
          setTimeout(function () {
               
                $('a[href]').each(function () {
                    var href = this.href;
    
                    $(this).removeAttr('href').css('cursor','pointer').click(function () {
                        if (href.toLowerCase().indexOf("#") >= 0) {
    
                        } else {
                         window.location.href = href;
                        }
                    });
                });
    
          },500);
    });

谢谢

解决方法

将此添加到CSS:

a[href] {
  cursor: auto !important;
}

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...