为了复习,我们总要摘抄些东西
我觉得吧,你啥也不用看,就学习
看人家咋写的,你模仿下来,就很牛了!
行,我们还是摘抄下自己的
index.css
body {
width: 100%;
min-width: 320px;
max-width: 640px;
margin: 0 auto;
font-size: 14px;
font-family: -apple-system, Helvetica, sans-serif;
color: #666;
line-height: 1.5;
}
/*点击高亮我们需要清除清除 设置为transparent 完成透明*/
* {
-webkit-tap-highlight-color: transparent;
}
/*在移动端浏览器默认的外观在iOS上加上这个属性才能给按钮和输入框自定义样式*/
input {
-webkit-appearance: none;
}
/*禁用长按页面时的弹出菜单*/
img,
a {
-webkit-touch-callout: none;
}
a {
color: #666;
text-decoration: none;
}
ul {
margin: 0;
padding: 0;
list-style: none;
}
img {
vertical-align: middle;
}
div {
/* css3 盒子模型 */
box-sizing: border-box;
}
/* 清楚浮动的写法 */
.clearfix:after {
content: "";
display: block;
line-height: 0;
visibility: hidden;
height: 0;
clear: both;
}
.app {
height:45px;
background-color: #000;
}
.app div{
float:left;
text-align: center;
line-height: 45px;
color:white;
}
.app .close {
width:10%;
}
.app .close img{
width: 10px;
}
.app .logo {
width:12%;
}
.app .logo img{
width:30px;
}
.app .title{
width: 48%;
}
.app .open {
width: 30%;
background-color: red;
}
/* m-common-header-search */
.m-common-header-search{
height:45px;
background-color: #e43130;
position: relative;
overflow: hidden;
}
.m-common-header-search .left {
width: 10%;
position: absolute;
left: 0;
top:0;
height: 100%;
}
.m-common-header-search span {
display:block;
width: 20px;
height: 18px;
margin:14px 0px 0px 15px;
background:url('./left.png') no-repeat;
background-size: 20px 18px;
}
.m-common-header-search .right {
width: 10%;
position: absolute;
right: 0;
top:0;
height: 100%;
text-align: center;
line-height:45px;
color:white;
}
.m-common-header-search .middle {
position: relative;
background-color:white;
margin: 8px 42px 0px 50px;
height: 32px;
border-radius: 15px;
}
.m-common-header-search .middle .jdlog {
position: absolute;
left:13px;
top:8px;
width:20px;
height: 15px;
background: url(./jdlogo.png) no-repeat;
background-size: 20px 15px;
}
.m-common-header-search .middle .jdlog::after{
content:"";
right:-10px;
top:0px;
position: absolute;
width: 1px;
height: 15px;
}
.m-common-header-search .middle .search {
position: absolute;
left:48px;
top:8px;
width:20px;
height: 15px;
background: url(./jd-sprites.png) no-repeat -80px 0px;
background-size:200px
}
.m-common-header-search .middle input {
position: absolute;
right:7px;
top:6px;
width:193px;
height: 16px;
padding-left:5px;
outline: none;
border:none;
line-height: 16px;
}
/* m-common-header-search 结束 */
重点理解下二倍图,三倍图的问题