css初始化(cssreset):yahoo标准
2017-04-23 12:11
417 查看
样式地址:https://github.com/yui/yui3/blob/master/src/cssreset/css/cssreset.css
样式:
样式:
/* TODO will need to remove settings on HTML since we can't namespace it. TODO with the prefix, should I group by selector or property for weight savings? */ html{ color:#000; background:#FFF; } /* TODO remove settings on BODY since we can't namespace it. */ /* TODO test putting a class on HEAD. - Fails on FF. */ body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, textarea, p, blockquote, th, td { margin:0; padding:0; } table { border-collapse:collapse; border-spacing:0; } fieldset, img { border:0; } /* TODO think about hanlding inheritence differently, maybe letting IE6 fail a bit... */ address, caption, cite, code, dfn, em, strong, th, var { font-style:normal; font-weight:normal; } ol, ul { list-style:none; } caption, th { text-align:left; } h1, h2, h3, h4, h5, h6 { font-size:100%; font-weight:normal; } q:before, q:after { content:''; } abbr, acronym { border:0; font-variant:normal; } /* to preserve line-height and selector appearance */ sup { vertical-align:text-top; } sub { vertical-align:text-bottom; } input, textarea, select { font-family:inherit; font-size:inherit; font-weight:inherit; *font-size:100%; /*to enable resizing for IE*/ } /*because legend doesn't inherit in IE */ legend { color:#000; }
相关文章推荐
- cssReset - css初始化
- css初始化-yahoo
- YAHOO 工程师CSS初始化代码
- yahoo(雅虎)工程师提供css 初始化代码
- css初始化-yahoo
- YaHoo 初始化css代码+IE常见兼容问题汇总
- DIV+CSS布局标准优点解析
- 【分享】说说标准——CSS中非常重要的可视化格式模型(visual formatting model)简介
- 【阅读】《Head First HTML 与 CSS》第六章——标准与其他
- 说说标准——CSS核心可视化格式模型(visual formatting model)之十一:绝对定位
- 各大网站CSS代码初始化集合
- 说说标准--CSS核心可视化格式模型(visual formatting model)之六--常规流中的相对定位
- tab 选项卡初始化函数(CSS不能自理)
- CSS-CSS初始化代码
- 布局css 标签重置以及类的初始化模板
- CSS自定义滚动条样式标准写法
- div+css网页标准布局实例教程(一)
- CSS初始化代码
- css公共样式,初始化
- css初始化通用代码(集合)