开发者

different css reset for every browser ,is this a good idea to get maximum compatibility with less efforts?

开发者 https://www.devze.com 2022-12-25 18:47 出处:网络
different css reset for every browser ,is this a good idea to get maximum compatibility with less efforts?

different css reset for every browser ,is this a good idea to get maximum compatibility with less efforts?

I found this on searching google http://www.iecss.com/

The UA Style Sheet is a simple set of css styles that each web browser uses bef开发者_如何学Pythonore any other css styles are applied.


You don't need a different CSS reset for every browser; one is enough. I personally like this one.


The point of global CSS reset is that you don't get the differences that different browsers have. Having a different CSS reset for each browser would kind of destroy the point.


If you could better/perfect your layout with different css style sheets, it is of course good idea. However you need to use sort of conditional statements (IE for example) to load a style sheet only for specific browsers in order to make sure that no other styles are loaded which may not be needed.

Except for the IE, most styles work across all browsers.


why would you want a different set of styles applied to each browser in the first place? all you need is a good reset (like meyer's as mentioned by Andreas Bonini) css and separate stylesheets to handle IE hacks.


CSS Reset is used to just remove any differences between different browser layout defaults. so,i t doesn't make sense to use different resets per browser.

The popular resets are 1. Eric Meyer's CSS Reset http://meyerweb.com/eric/tools/css/reset/ 2. YIU CSS Reset http://developer.yahoo.com/yui/reset/

Use whatever you feel suits you. But surely don't use diff. resets per browser.

0

精彩评论

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