gpt4 book ai didi

css - 如何通过 CSS 识别 Microsoft Edge 浏览器?

转载 作者:数据小太阳 更新时间:2023-10-29 09:07:46 26 4
gpt4 key购买 nike

我正在开发 Web 应用程序,我需要将 Microsoft Edge 的浏览器与其他浏览器区分开来,以应用独特的样式。有没有办法使用 CSS 来识别 Edge?就像,

<!--[if IE 11]>
Special instructions for IE 11 here
<![endif]-->

最佳答案

/* Microsoft Edge 浏览器 12-18(Chromium 之前的所有版本)*/

这个应该可以工作:

@supports (-ms-ime-align:auto) {
.selector {
property: value;
}
}

有关更多信息,请参阅:Browser Strangeness

关于css - 如何通过 CSS 识别 Microsoft Edge 浏览器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32201586/

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