CSS哈克目标火狐3.5 +? [英] CSS Hack to Target Firefox 3.5+?
本文介绍了CSS哈克目标火狐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屋!
查看全文