什么Safari特有的纯CSS黑客在那里? [英] What Safari-specific pure CSS hacks are out there?

查看:126
本文介绍了什么Safari特有的纯CSS黑客在那里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有任何方法来专门为Safari使用CSS编写CSS。

I'm wondering if there's any way to write CSS specifically for Safari using only CSS. I know there has to be something out there, but I haven't found it yet.

推荐答案

我认为问题是有效的。我同意其他答复,但它不意味着这是一个可怕的问题。我只需要使用Safari CSS黑客一次作为一个临时解决方案,后来摆脱它。我同意,您不应该只定位Safari,但不知道该如何做。

I think the question is valid. I agree with the other responses, but it doesn't mean it's a terrible question. I've only ever had to use a Safari CSS hack once as a temporary solution and later got rid of it. I agree that you shouldn't have to target just Safari, but no harm in knowing how to do it.

FYI,这个黑客攻击只针对Safari 3, Opera 9。

FYI, this hack only targets Safari 3, and also targets Opera 9.

@media screen and (-webkit-min-device-pixel-ratio:0) {
   /* Safari 3.0 and Opera 9 rules here */
}

这篇关于什么Safari特有的纯CSS黑客在那里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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