是否有可用于 CSS 重置的 HTML 测试文件?
有很多 CSS 重置。我正在为移动设备构建一些东西,我想跳过尽可能多的不必要的 CSS,所以我想知道是否有 详尽的 HTML 测试页 我可以运行一些 CSS 重置 来测试它们?
测试规则也是了解需要哪些边缘情况、它们的目标是什么以及原因的好方法。
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 also a great way to learn what edge cases are required, what they target, and why.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您当然可以在重置中跳过您知道不会使用的任何标签。例如,如果您从不使用定义列表,请跳过 dl、dt 和 dd 重置。
请记住,CSS 重置只是一个起点,因此您可以合理地确定您的页面在不同浏览器中看起来相同。
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.
今天环顾四周后,我终于找到了一个名为 http://cssresetr.com/ 的很棒的网站,它为您提供了测试的机会关于许多不同元素组的相当大的样式表集!
我可能可以窃取每个组的 HTML 并将其混合到一个页面中 - 然后尝试一些未列出的样式表。
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.
使用 YUI 提供的怎么样?
http://developer.yahoo.com/yui/examples/reset/reset -simple_source.html
How about using the one supplied by YUI ?
http://developer.yahoo.com/yui/examples/reset/reset-simple_source.html