码迷,mamicode.com
首页 > 其他好文 > 详细

构建公共样式

时间:2015-07-14 17:45:35      阅读:143      评论:0      收藏:0      [点我收藏+]

标签:

  1. /* reset public style*/
  2. 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;}
  3. article, aside, details, figcaption, figure,footer, header, hgroup, menu, nav, section {display: block;}
  4. ol,ul{list-style:none;margin:0;padding:0;}
  5. blockquote,q{quotes:none;}
  6. blockquote:before,blockquote:after,q:before,q:after{content:‘‘;content:none;}
  7. table{border-collapse:collapse;border-spacing:0;}
  8. /* start editing from here */
  9. a{text-decoration:none;}
  10. .txt-rt{text-align:right;}/* text align right */
  11. .txt-lt{text-align:left;}/* text align left */
  12. .txt-center{text-align:center;}/* text align center */
  13. .float-rt{float:right;}/* float right */
  14. .float-lt{float:left;}/* float left */
  15. .clear{clear:both;}/* clear float */
  16. .pos-relative{position:relative;}/* Position Relative */
  17. .pos-absolute{position:absolute;}/* Position Absolute */
  18. .vertical-base{ vertical-align:baseline;}/* vertical align baseline */
  19. .vertical-top{ vertical-align:top;}/* vertical align top */
  20. .underline{ padding-bottom:5px; border-bottom: 1px solid #eee; margin:0 0 20px 0;}/* Add 5px bottom padding and a underline */
  21. nav.vertical ul li{ display:block;}/* vertical menu */
  22. nav.horizontal ul li{ display: inline-block;}/* horizontal menu */
  23. img{max-width:100%;}

构建公共样式

标签:

原文地址:http://www.cnblogs.com/Muren/p/4645909.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!