1. 程式人生 > >通用樣式

通用樣式

html,
body {
    width: 100%;
    height: 100%;
}

body {
    font-family: "思源黑體", Arial, Helvetica, sans-serif;
    font-size: 1.3rem;
    overflow: hidden;
}

* {
    padding: 0;
    margin: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

.speed{
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
  -ms-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

a:link,
a:visited,
a:hover,
a:active {
    text-decoration: none;
}

input,
select,
button {
    font-size: 100%;
    outline: 0;
    vertical-align: middle;
    -webkit-appearance: none;
}

button {
    border: 0;
    background-color: transparent;
    background-clip: padding-box;
}

ul {
    list-style: none;
}

img {
    border: none;
    vertical-align: baseline;
    pointer-events: none;
}

.lf {
    float: left;
}

.rt {
    float: right;
}

.clearfix:after {
    content: "";
    display: block;
    clear: both;
}