gpt4 book ai didi

jquery - 在ie兼容模式下删除或隐藏按钮焦点轮廓(jquery impromptu)

转载 作者:行者123 更新时间:2023-11-28 08:30:58 24 4
gpt4 key购买 nike

我在我的 Web 应用程序中使用名为 impromptu 的 jquery 模态对话框插件。在 ie 兼容模式下运行时,我的默认按钮样式有问题。

当我的对话框显示时禁用了 ie 兼容模式,我的对话框看起来像这样......

enter image description here

但是,当我的对话框在兼容模式下显示时,我的对话框上的默认按钮有一个丑陋的边框。

enter image description here

谁能帮我去除这个丑陋的边框,或者告诉我如何更改样式以使其看起来更漂亮。

我主要支持 firefox,但我也必须支持 ie 7 及更高版本。为此,我在我的 html 页面中添加了以下元标记。

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">

谢谢

最佳答案

你可以使用下面的类

.hideFocus{
hide-focus: expression(this.hideFocus=true); /* for ie 5+ */
outline: none; /* for firefox 1.5 + */
}

关于jquery - 在ie兼容模式下删除或隐藏按钮焦点轮廓(jquery impromptu),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28270254/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com