项目2.2 (HTML5)

One Web, Any Device

万物互联,极致体验

【HTML5】全面兼容移动设备

颠覆原生应用指日可待,传智播客重新定义前端开发

原生移动APP开发
微信公共平台开发
网站开发
桌面应用开发

CSS:

html,body {
width: 100%;
height: 100%;
}
html{
overflow: hidden;
}
body {
font-family: ‘Microsoft Yahei’;
color: #ffffff;
/新增的,去body的默认边距/
padding: 0;
margin: 0;
}
h3, h4, h5{
margin-top: 0;
margin-bottom: .5rem;
}
p {
margin-top: 0;
margin-bottom: 1rem;
}
div {
display: block;
}
@font-face {
font-family: ‘Pinyon Script’;
src: url("…/fonts/PinyonScript-Regular.ttf") ;
font-weight: normal;
font-style: normal;
}
.fa {
display: inline-block;/把行元素转换为行内块元素/
font: normal normal normal 14px / 1 FontAwesome;
font-size: inherit;
text-rendering: auto;/设置文本渲染引擎工作时如何优化显示文本, 默认值:auto/
-webkit-font-smoothing: antialiased;
}
#mobile {
background-image: url("…/images/section_mobile_bg.jpg");
text-align: center;
}
#mobile h3 {
font-size: 6rem;
font-family: ‘Pinyon Script’;
font-weight: 600;
/设置文字阴影:向右5px 向下5px 模糊程度0.3rem 颜色为#62819d/
text-shadow: 5px 5px 0.3rem #62819d;
margin-bottom: 2rem;
}
#mobile h4 {
font-size: 3rem;
text-shadow: 10px 10px 0.2rem #62819d;
}
.cover-section {
background-size: cover;/背景平铺/
background-repeat: no-repeat;/背景不重复/
background-position: center;
display: table;/此元素会作为块级表格来显示(类似

)/
height: 100%;
width: 100%;
position: relative;
}
.section-inner {
display: table-cell;/ 此元素会作为一个表格单元格显示(类似
)/
width: 100%;
vertical-align: middle;/垂直居中/
}
#mobile .description {
margin-top: 3rem;
}
#mobile .description > p {
font-size: 1.5rem;
}
.row {
margin-left: -0.9375rem;
margin-right: -0.9375rem;
}
.row:before, .row:after {
content: " ";
display: table;
}
.row:after {
clear: both;/清除左右浮动/
}
#mobile .list {
text-align: center;
margin: 3rem 0 1.5rem;/外边距:上边距3rem 左右边距0 下边距1.5rem/
}
#mobile .list i {
font-size: 3rem;
padding: 2rem;
}
#mobile .list h5 {
font-size: 1.3rem;
font-weight: normal;
}
.col-xs-6,.col-md-3{
position: relative;
min-height: 1px;
padding-left: 0.9375rem;
padding-right: 0.9375rem;
/新增的/
float: left;
box-sizing: border-box;
}
.col-xs-6 {
width: 50%;
}
.col-md-3 {
float: left;
width: 25%;
}

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值