简体   繁体   English

如何定位除IE和Edge以外的所有浏览器

[英]How do I target all browsers except for IE and Edge

I've gotten a 3d model animation working but the css file is quite big. 我已经制作了3D模型动画,但是CSS文件很大。 Here's my plan. 这是我的计划。 I'm going to separate the css file from the 3d model and only important that css when that browser is not EDGE and not IE. 我将要从3d模型中分离出css文件,并且只有当该浏览器不是EDGE也不是IE时,css才是重要的。 Edge and IE extremely struggle with the animations I'm working with. Edge和IE在与我一起使用的动画方面非常挣扎。 Is there a way to target everything but edge? 除了边缘以外,是否有其他方法可以定位所有目标? It can be a combination, it can be multiple queries. 它可以是一个组合,也可以是多个查询。 I'd prefer to do this without js, but if a js solution is optimal, I'll use it. 我更愿意在没有js的情况下执行此操作,但是如果js解决方案最佳,我会使用它。

ideally it would look something like this: 理想情况下,它看起来像这样:

(if not edge or ie query) {@import url("3dmodel.css");}

or if I can't select no edge or ie specifically something like this: 或者,如果我无法选择无边缘,或者特别是像这样的东西:

(if chrome query) {@import url("3dmodel.css");}
(if firefox query) {@import url("3dmodel.css");}
(if ...){...}

我希望这可以帮助您满足浏览器特定CSS的需求

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM