【发布时间】:2013-12-31 10:50:12
【问题描述】:
我的 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;
}
边框不是圆角的,不仅仅是border-radius,vertical-align:mile,而且大多数CSS3都不起作用,如果我做以下2件事,这个问题就不会发生
- 从兼容性视图设置中删除我的网站或
- 将元标记
<meta http-equiv="X-UA-Compatible" content="IE=edge">放入html文件中。
但我需要将我的网站置于兼容性视图设置中,因为需要一个函数来触发 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
如何让IE在不损坏CSS的情况下识别vbscript函数。
希望有人能提供一些解决方案。
我使用的是 IE11
【问题讨论】:
标签: internet-explorer css vbscript compatibility