开发者

Is there a HTML test file I can use for CSS resets?

There are a lot of CSS resets. I am building something for mobile devices and I want to skip as much of the unnecessary CSS as possible so I was wondering if there is an exhaustive HTML test page I can run some of the CSS resets against to test them?

Testing the rules is als开发者_运维百科o a great way to learn what edge cases are required, what they target, and why.


You can certainly skip any tags in your reset that you know you will not be using. For example, if you never use definition lists, skip the dl, dt and dd resets.

Remember, a CSS reset is simply a starting point, so you can be reasonably sure your page looks the same in different browsers.


After looking around today I finally found a awesome site called http://cssresetr.com/ which offers you a chance to test a fairly-large set of stylesheets on many deferent groups of elements!

I can probably just steal the HTML for each group and mash it up into a single page - then try some of the stylesheets not listed.


How about using the one supplied by YUI ?

http://developer.yahoo.com/yui/examples/reset/reset-simple_source.html

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜