gpt4 book ai didi

internet-explorer - Css 在 IE 兼容性 View 中不工作

转载 作者:太空宇宙 更新时间:2023-11-04 04:09:40 25 4
gpt4 key购买 nike

我的 css 有问题,请在 IE 兼容模式下查看。

例如

div#tab-bar-selected{
border-top-left-radius:5px;
border-top-right-radius:0;
border-bottom-right-radius:0;
border-bottom-left-radius:5px;
}

边框不是圆 Angular 的,不仅仅是边框半径、垂直对齐:中间和大多数 CSS3 都不起作用,如果我执行以下 2 项操作,则不会出现此问题

  1. 从兼容性 View 设置中删除我的网站或
  2. 放置元标记<meta http-equiv="X-UA-Compatible" content="IE=edge">在 html 文件中。

但是我需要将我的站点置于兼容性 View 设置中,因为需要一个函数来触发 vbscript。如果我执行上面提到的两步,浏览器将无法识别 vbscript 函数/该函数未定义。

下面是vbscript

sub launchBarcode()
Dim appShell
Set appShell = CreateObject("WScript.Shell")
Set WshUserEnv=appShell.Environment("System")
Dim program

'Waited for you to close the window before it continued.
appShell.Run WshUserEnv("ilms02") & "\\BarcodeReader\\BarcodeReader.exe",1,True

appShell.SendKeys "{F5}"
Set appShell = Nothing
end sub

如何在不破坏CSS的情况下让IE识别vbscript函数。

希望有人能提供一些解决方案。

我正在使用 IE11

最佳答案

现在你不应该使用 VBScript。

As of Internet Explorer 11, VBScript is considered deprecated and should no longer be used as a scripting language for IE11. Webpages displayed in IE11 edge mode won't execute VBScript code in the Internet zone. VBScript is supported for webpages displayed in other security zones.

For compatibility reasons, VBScript does execute for legacy document modes (IE10 standards mode and earlier), however, this should be considered a temporary solution. VBScript is available to webpages displayed in other security zones.

source

你可以尝试使用这个:

<meta http-equiv="x-ua-compatible" content="IE=10,9" >

关于internet-explorer - Css 在 IE 兼容性 View 中不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20856123/

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