仅在Mac上使用CSS Chrome浏览器 - 无JavaScript - [英] CSS hack for Chrome on Mac Only - No JavaScript -

查看:439
本文介绍了仅在Mac上使用CSS Chrome浏览器 - 无JavaScript - 的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法只在Mac上定位Chrome?我已经使用过:

$ $ p code @media screen和(-webkit-min-device-pixel-ratio:0){

/ * Webkit样式在这里* /

}

但是,在WIN和MAC中都会呈现。



我只会接触另一个角度,并且只针对IE和FF for Mac,只有这是我唯一的选择。 p>

如果我能避免它,我也不想使用JavaScript。



有什么想法?

解决方案

不能使用CSS来完成此操作,可能您必须使用javascript才能完成此操作。 p>

Is there a way to target only Chrome on Mac ONLY? I have used:

@media screen and (-webkit-min-device-pixel-ratio:0) {

    /* Webkit Styles here */

}

But that renders in both WIN and MAC.

I would be open to approaching from the other angle and target IE and FF for Mac only if that's my only option.

I'm also wanting to NOT use JavaScript if I can avoid it.

Any ideas?

解决方案

You can't do this with CSS at all may be you have to use javascript for this.

这篇关于仅在Mac上使用CSS Chrome浏览器 - 无JavaScript - 的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆