Skip to content

Instantly share code, notes, and snippets.

@Johnqing
Last active August 29, 2015 13:58
Show Gist options
  • Save Johnqing/10345656 to your computer and use it in GitHub Desktop.
Save Johnqing/10345656 to your computer and use it in GitHub Desktop.
/* public */
html,
body {
/* 禁止选中文本(如无文本选中需求,此为必选项) */
-webkit-user-select: none;
user-select: none;
}
html {
font-size: 62.5%;
-webkit-text-size-adjust: none;
}
body {
font: 1rem/1.5 "microsoft yahei", Arial;
color: #909095;
background-color: #fff;
}
a {
outline:none;
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
text-decoration: none;
}
a:hover {
text-decoration: none;
}
ul,
ol,
li {
list-style: none;
}
ul,
li,
h1,
h2,
h3,
h4,
h5,
p {
margin: 0;
padding: 0
}
img {
border: 0
}
input,
img {
vertical-align: middle
}
article,
aside,
dialog,
footer,
header,
section,
footer,
nav,
figure,
hgroup {
display: block;
}
<!DOCTYPE>
<html>
<head>
<meta charset="utf-8">
<title>demo</title>
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="stylesheet" href="css/mobile_base.css">
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment