常用公共的css的樣式


@charset "UTF-8";
html {
  -webkit-text-size-adjust: none;
     -moz-text-size-adjust: none;
      -ms-text-size-adjust: none;
          text-size-adjust: none;
  /*解決chrome瀏覽器下字體不能小於12px*/ }

body {
  overflow-x: auto;
  font-size: 14px;
  color: #333;
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; }

a {
  outline: none;
  text-decoration: none;
  color: inherit; }

a:hover {
  text-decoration: none; }

html {
  zoom: 1; }

html * {
  outline: 0;
  zoom: 1; }

html button::-moz-focus-inner {
  border-color: transparent !important; }

/*設置margin和padding為0*/
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, a img {
  border: 0; }

address, caption, cite, code, dfn, em, th, var,i {
  font-style: normal;
  font-weight: normal; }

li {
  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: ''; }

em, i {
  font-style: normal; }

input[type="submit"], input[type="reset"], input[type="button"], input[type=date], button, select, input[type=text] {
  /*去掉蘋果的默認UI來渲染按鈕 、解決部分手機瀏覽器對border:none無效辦法*/
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  /*去掉微信端input-text在ios輕快下的點擊出先黑色半透明背景*/
  tap-highlight-color: transparent !important; }

a, input[type=text], select, input[type=password], textarea {
  /*去掉微信端input-text在ios輕快下的點擊出先黑色半透明背景*/
  tap-highlight-color: transparent !important; }

input::-webkit-input-placeholder {
  color: #aaa; }

  


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM