ブラウザごとのCSSによる見栄えの差異を初期化するために、
Yahoo! UI Library:YUI の YUI Reset CSS をメモ。
/*======================================
Copyright (c) 2006, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.txt
version: 0.10.0
=======================================*/
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td{
margin:0;
padding:0;
}
table{
border-collapse:collapse;
border-spacing:0;
}
fieldset,img{
border:0;
}
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;
}
対応ブラウザに関しては該当ページを参照のこと。
コメント:0
トラックバック:0
- この記事のトラックバック URL
- http://showzine.info/blog/2009/01/yui-reset-css%e3%82%92%e5%88%a9%e7%94%a8%e3%81%97%e3%81%9fcss%e3%81%ae%e5%88%9d%e6%9c%9f%e5%8c%96.html/trackback
- トラックバックの送信元リスト
- YUI Reset CSSを利用したCSSの初期化 - SHOWJIN*BLOG より