移动端常用样式

@charset “utf-8”;

/ 禁用iPhone中Safari的字号自动调整 /
html {
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
/解决IOS默认滑动很卡的情况 /
-webkit-overflow-scrolling: touch;
-webkit-text-size-adjust:none;
}

/ 禁止缩放表单 /
input[type=“submit”],
input[type=“reset”],
input[type=“button”],
input {
resize: none;
border: none;
outline: none;
outline: none;

}
button ,input[type=“button”]{
-webkit-appearance: none;
border: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/ 取消链接高亮 /
body,
div,
ul,
li,
ol,
h1,
h2,
h3,
h4,
h5,
h6,
input,
textarea,
select,
p,
dl,
dt,
dd,
a,
img,
button,
form,
table,
th,
tr,
td,
tbody,
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/ 设置HTML5元素为块 /
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
display: block;
}

/ 图片自适应 /
img {
width: 100%;
height: auto;
width: auto\9;
/ie8 /
display: inline-block;
-ms-interpolation-mode: bicubic;
/为了照顾ie图片缩放失真/
}

/ 初始化 /
body,
div,
ul,
li,
ol,
h1,
h2,
h3,
h4,
h5,
h6,
input,
textarea,
select,
p,
dl,
dt,
dd,
a,
img,
button,
form,
table,
th,
tr,
td,
tbody,
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font: 12px/1.5 ‘Microsoft YaHei’, ‘宋体’, Tahoma, Arial, sans-serif;
color: #555;
background-color: #F7F7F7;
max-height: 999999px;
}

em,
i {
font-style: normal;
}

ul,
li {
list-style-type: none;
}

strong {
font-weight: normal;
}

.clearfix:after {
content: “”;
display: block;
visibility: hidden;
height: 0;
clear: both;
}

.clearfix {
zoom: 1;
}

a {
text-decoration: none;
color: #969696;
font-family: ‘Microsoft YaHei’, Tahoma, Arial, sans-serif;
}

a:hover {
text-decoration: none;
}

ul,
ol {
list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
font-size: 100%;
font-family: ‘Microsoft YaHei’;
}

img {
border: none;
}

input {
font-family: ‘Microsoft YaHei’;
}

/单行溢出/
.one-txt-cut {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}

/多行溢出 手机端使用/
.txt-cut {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}

/移动端点击a链接出现蓝色背景问题解决 /
a:link,
a:active,
a:visited,
a:hover {
background: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-webkit-tap-highlight-color: transparent;
}

.w50 {
width: 50%;
}

.w25 {
width: 25%;
}

.w20 {
width: 20%;
}

.w33 {
width: 33.333333%;
}

.fl {
float: left;
}

.fr {
float: right;
}

.db {
display: block !important;
}

.dn {
display: none;
}

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

#app {
width: 100%;
height: 100%;
}

.container {
width: 100%;
height: 100%;
}

.arrow {
position: absolute;
left: 0.426666rem;
width: 0.266666rem;
height: 0.48rem;
}
html{
font-size:calc(100vw / 7.5);
}
body{
font-size: .24rem;
color: #4F4F4F;
width: 100%;
overflow-x: hidden;

}
.container{
width: 7.01rem / 701/100 /;
margin-left: .24rem / 24/100 /;
margin-top: .25rem / 25/100 /;
}
/ 头部公共样式 /
.header {
text-align: center;
color: #444444;
font-size:.34rem;
/ position: relative; /
padding-top: 0.1rem;
line-height: .3rem;
position: fixed;
top: 0;
width: 100%;
background: #fff;
z-index: 99;
height: .5rem;
}

.arrow {
position: absolute;
left: 0.426666rem;
width: 0.2rem;
height: 0.35rem;
}
.contain_title{
height: .63rem / 53/100 /;
line-height: .63rem / 53/100 /;
border-bottom: 1px solid #E7DFE8;
color: #007AFF;
}
.fc_blue{
color: #007AFF;
}
.border_b {
border-bottom: 1px solid #e7dfe8;
}
/ 居中提交按钮 /
.subBox {
text-align: center;
}
.subButton {
width: 3rem;
height: 0.8rem;
background: rgba(0, 122, 255, 1);
box-shadow: 0px 0.1rem 0.2rem 0px rgba(42, 42, 42, 0.25);
border-radius: 0.4rem;
color: #fff;
outline: none;
margin-top: 0.37rem;
}
.topTitle{
height: 1.44rem;
line-height: 1.44rem;
color: #fff;
font-size: .42rem;
text-align: center;
}

猜你喜欢

转载自blog.51cto.com/13496570/2494540