开发者

Apply css properties depending on which browser is used

开发者 https://www.devze.com 2023-03-04 07:37 出处:网络
I want to apply different css properties depending on which browser is used, If browser is Firefox version 4.0 use this code:

I want to apply different css properties depending on which browser is used, If browser is Firefox version 4.0 use this code:

.lastnews-Col {
    height: 360px;
    margin-bottom: 5px;
    overflow: hidden;
    padding: 5px;
    position: relative;
}

If browser is not Firefox version 4.0 apply this css property :

.lastnews-C开发者_如何学Col {
    height: 350px;
    margin-bottom: 5px;
    overflow: hidden;   
}

How can this be done?


Use firefox 4 specific selector: -moz-any()
http://jsfiddle.net/seler/yuKxW/1/


Use something like CSS Browser Selector/.

0

精彩评论

暂无评论...
验证码 换一张
取 消