CSS哈克目标火狐3.5 +? [英] CSS Hack to Target Firefox 3.5+?

查看:123
本文介绍了CSS哈克目标火狐3.5 +?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Firefox 3.5现在支持nth-伪类,这正是我用来定位我的css for Safari和Chrome的。现在,Firefox也会读取这些信息,导致一些小的布局问有没有人知道一个方法来专门针对FF 3.5 +?

  BODY:nth-​​of-type(1)#topsearch input [ type = submit] / * Safari 3.1+和Chrome * / {
height:19px
}


解决方案

CSS浏览器选择器可让您编写针对特定浏览器的CSS,而不用担心黑客。我不能推荐它足够。


Firefox 3.5 now supports the nth-* pseudoclass, which was what I was using to target my css for Safari and Chrome. Now Firefox reads those too, causing minor layout issues. Does anyone know a way to specifically target FF 3.5+?

BODY:nth-of-type(1) #topsearch input[type=submit] /* Safari 3.1+ and Chrome */ { 
     height:19px 
}

解决方案

CSS Browser selector lets you write CSS that targets specific browsers, without worrying about hacks. I cannot recommend it highly enough.

这篇关于CSS哈克目标火狐3.5 +?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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