CSS黑客,火狐3.5和谷歌Chrome [英] CSS Hacks, Firefox 3.5 and Google Chrome
问题描述
我四处搜寻,据称,体:第n-的式(1)
在CSS被用来只针对Safari浏览器和谷歌Chrome
I searched around and allegedly, body:nth-of-type(1)
is used in CSS to target only Safari and Google Chrome.
你瞧,Mozilla的读取它正常了。我搜索了十倍以上,但什么也没有来了,所以我在这里。
Lo and behold, Mozilla reads it properly too. I searched ten times more but came up with nothing, so here I am.
有一个谷歌浏览器,只有CSS破解?
Is there a Google Chrome-only CSS hack?
推荐答案
@media屏幕(-webkit-分设备像素比:0){...风格去这里.. }
有没有对CSS的只有的铬(据我所知),但Chrome和Safari。您可以考虑一个JavaScript解决方案。
There is no CSS for only Chrome (AFAIK) but Chrome AND Safari. You may consider a Javascript solution.
更新2013年1月22日:由于在评论中提到的,这可能不再是安全的。我无法找到一个合适的选择。
UPDATE Jan 22, 2013: As mentioned in the comments, this may no longer be safe. I could not find a suitable alternative.
这篇关于CSS黑客,火狐3.5和谷歌Chrome的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!