Browsers' default CSS stylesheets

独自空忆成欢 提交于 2019-11-26 01:54:00
robertc

Not tabular, but the source CSS may be helpful if you're looking for something specific:

You're on your own with IE and Opera though.

Greg Hurlman

I suspect this is something of a moving target for all the browsers, but there is a default style sheet for HTML 4 as defined by the W3C.

There probably is a list, this is why we use CSS Resets however.

CSS class have compiled a list of CSS2.1 User Agent Style Sheet Defaults. Some links at the bottom of that page as well.

You cannot possibly know all defaults for all configurations of all browsers into the future.

The way people get around this is to start their CSS by resetting everything to known values. Here's an example from one of the main CSS experts: http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!