Browsers' default CSS stylesheets

2019-01-01 13:38发布

Are there any lists of default CSS stylesheets for different browsers? (browser stylesheets in tabular form)

I want to know the default font of text areas across all browsers for future reference.

6条回答
高级女魔头
2楼-- · 2019-01-01 13:51

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.

查看更多
回忆,回不去的记忆
3楼-- · 2019-01-01 13:54

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.

查看更多
牵手、夕阳
4楼-- · 2019-01-01 13:58

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

查看更多
人间绝色
5楼-- · 2019-01-01 14:04

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/

查看更多
人气声优
7楼-- · 2019-01-01 14:07

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

查看更多
登录 后发表回答