我正在开发Web应用程序,我需要将Microsoft Edge的浏览器与其他浏览器区分开来,以应用独特的样式.有没有办法使用CSS来识别Edge? 就像,
<!--[if IE 11]>
Special instructions for IE 11 here
<![endif]-->
我正在开发Web应用程序,我需要将Microsoft Edge的浏览器与其他浏览器区分开来,以应用独特的样式.有没有办法使用CSS来识别Edge? 就像,
<!--[if IE 11]>
Special instructions for IE 11 here
<![endif]-->
/*Microsoft Edge Browser 12-18(Chromium之前的所有版本)*/
这一条应该有效:
@supports (-ms-ime-align:auto) {
.selector {
property: value;
}
}
有关更多信息,请参阅:Browser Strangeness