开发者

CSS hack for Firefox 3 Mac

开发者 https://www.devze.com 2023-03-06 17:31 出处:网络
Without doing a lot, I need to make a height in my CSS class be 570px o开发者_如何学Gon PC, but 610px on Firefox on Mac. Is there a quick and easy CSS hack for this?I would suggest using something lik

Without doing a lot, I need to make a height in my CSS class be 570px o开发者_如何学Gon PC, but 610px on Firefox on Mac. Is there a quick and easy CSS hack for this?


I would suggest using something like http://snipplr.com/view/625/browser-detect-lite--v21/ to detect which browser/OS the client is using, and from that attach classes to the HTML or BODY tag on load stating the browser (+ version) and OS.

then on your stylesheet you could do (for example):

 .win.ff3 #whatever { height: 570px; }
 .mac.ff3 #whatever { height: 610px; }
0

精彩评论

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