H-ui.reset.css 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. @charset "utf-8";
  2. /* -----------H-ui前端框架-------------
  3. * H-ui.reset.css v1.2 重定义浏览器默认样式
  4. * http://www.h-ui.net/
  5. * Created & Modified by guojunhui
  6. * Date modified 2014.10.09
  7. *
  8. * Copyright 2013-2015 北京颖杰联创科技有限公司 All rights reserved.
  9. * Licensed under MIT license.
  10. * http://opensource.org/licenses/MIT
  11. *
  12. */
  13. /*1 重定义浏览器默认样式
  14. Name: style_reset
  15. Level: Global
  16. Explain: 重定义浏览器默认样式
  17. Last Modify: jackying
  18. */
  19. *{word-wrap:break-word}
  20. html,body,h1,h2,h3,h4,h5,h6,hr,p,iframe,dl,dt,dd,ul,ol,li,pre,form,button,input,textarea,th,td,fieldset{margin:0;padding:0}
  21. ul,ol,dl{list-style-type:none}
  22. html,body{*position:static}
  23. html{font-family: sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}
  24. address,caption,cite,code,dfn,em,th,var{font-style:normal;font-weight:400}
  25. input,button,textarea,select,optgroup,option{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit}
  26. input,button{overflow: visible;vertical-align:middle;outline:none}
  27. body,th,td,button,input,select,textarea{font-family:"Microsoft Yahei","Hiragino Sans GB","Helvetica Neue",Helvetica,tahoma,arial,Verdana,sans-serif,"WenQuanYi Micro Hei","\5B8B\4F53";font-size:12px;color: #333;-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing:grayscale}
  28. body{line-height:1.6}
  29. h1,h2,h3,h4,h5,h6{font-size:100%}
  30. a,area{outline:none;blr:expression(this.onFocus=this.blur())}
  31. a{text-decoration:none;cursor: pointer}
  32. a:hover{text-decoration:underline;outline:none}
  33. a.ie6:hover{zoom:1}
  34. a:focus{outline:none}
  35. a:hover,a:active{outline:none}:focus{outline:none}
  36. sub,sup{vertical-align:baseline}
  37. button,input[type="button"], input[type="submit"] {line-height:normal !important;}
  38. /*img*/
  39. img{border:0;vertical-align:middle}
  40. a img,img{-ms-interpolation-mode:bicubic}
  41. .img-responsive{max-width: 100%;height: auto}
  42. /*IE下a:hover 背景闪烁*/
  43. *html{overflow:-moz-scrollbars-vertical;zoom:expression(function(ele){ele.style.zoom = "1";document.execCommand("BackgroundImageCache",false,true)}(this))}
  44. /*HTML5 reset*/
  45. header,footer,section,aside,details,menu,article,section,nav,address,hgroup,figure,figcaption,legend{display:block;margin:0;padding:0}time{display:inline}
  46. audio,canvas,video{display:inline-block;*display:inline;*zoom:1}
  47. audio:not([controls]){display:none}
  48. legend{width:100%;margin-bottom:20px;font-size:21px;line-height:40px;border:0;border-bottom:1px solid #e5e5e5}
  49. legend small{font-size:15px;color:#999}
  50. svg:not(:root) {overflow: hidden}
  51. fieldset {border-width:0;padding: 0.35em 0.625em 0.75em;margin: 0 2px;border: 1px solid #c0c0c0}
  52. input[type="number"]::-webkit-inner-spin-button,input[type="number"]::-webkit-outer-spin-button {height: auto}
  53. input[type="search"] {-webkit-appearance: textfield; /* 1 */-moz-box-sizing: content-box;-webkit-box-sizing: content-box; /* 2 */box-sizing: content-box}
  54. input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration {-webkit-appearance: none}
  55. /*
  56. Name: style_clearfix
  57. Example: class="clearfix|cl"
  58. Explain: Clearfix(简写cl)避免因子元素浮动而导致的父元素高度缺失能问题
  59. */
  60. .cl:after,.clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden}.cl,.clearfix{zoom:1}