移动端开发初始化CSS文件

前端开发工作前景好|游戏开发需要前端|mac前端开发软件
@charset “utf-8”;
/* / 禁用iPhone中Safari的字号自动调整 / */
    -webkit-text-size-adjust: none;
    -ms-text-size-adjust: none;
    font-family: ‘黑体’;
}
/* / 去除iPhone中默认的input样式 / */
input[type=’submit’],
input[type=’reset’],
input[type=’button’],
input:focus,
button:focus,
select:focus,
textarea:focus {
    outline: none;
}
input {
    font-family: ‘黑体’;
    -webkit-appearance: none;
    resize: none;
    border-radius: 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 {
    max-width: 100%;
    height: auto;
    width: auto\9;
    /* / ie8 / */
    -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;
    border: none;
}
body {
    background: #ececeb;
    font-family: ‘微软雅黑’;
}
em,
i {
    font-style: normal;
}
strong {
    font-weight: normal;
}
.clearfix:after {
    content: ”;
    display: block;
    visibility: hidden;
    height: 0;
    clear: both;
}
.clearfix {
    zoom: 1;
}
a {
    text-decoration: none;
    color: #333;
    font-family: ‘黑体’, Microsoft YaHei, Tahoma, Arial, sans-serif;
}
a:hover {
    color: #fed503;
    text-decoration: none;
}
ul,
ol {
    list-style: none;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: 100%;
    font-family: Microsoft YaHei;
}
img {
    border: none;
}
前端开发可视化软件|web前端设计与开发课后代码|前端开发需要用到数据库吗
» 本文来自:前端开发者 » 《移动端开发初始化CSS文件》
» 本文链接地址:https://www.rokub.com/5172.html
» 您也可以订阅本站:https://www.rokub.com
赞(0)
64K

评论 抢沙发

评论前必须登录!