- /* reset public style*/
- html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,dl,dt,dd,ol,nav ul,nav li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline;}
- article, aside, details, figcaption, figure,footer, header, hgroup, menu, nav, section {display: block;}
- ol,ul{list-style:none;margin:0;padding:0;}
- blockquote,q{quotes:none;}
- blockquote:before,blockquote:after,q:before,q:after{content:‘‘;content:none;}
- table{border-collapse:collapse;border-spacing:0;}
- /* start editing from here */
- a{text-decoration:none;}
- .txt-rt{text-align:right;}/* text align right */
- .txt-lt{text-align:left;}/* text align left */
- .txt-center{text-align:center;}/* text align center */
- .float-rt{float:right;}/* float right */
- .float-lt{float:left;}/* float left */
- .clear{clear:both;}/* clear float */
- .pos-relative{position:relative;}/* Position Relative */
- .pos-absolute{position:absolute;}/* Position Absolute */
- .vertical-base{ vertical-align:baseline;}/* vertical align baseline */
- .vertical-top{ vertical-align:top;}/* vertical align top */
- .underline{ padding-bottom:5px; border-bottom: 1px solid #eee; margin:0 0 20px 0;}/* Add 5px bottom padding and a underline */
- nav.vertical ul li{ display:block;}/* vertical menu */
- nav.horizontal ul li{ display: inline-block;}/* horizontal menu */
- img{max-width:100%;}
构建公共样式
原文:http://www.cnblogs.com/Muren/p/4645909.html