iphone 手机开发汇总

回想起最近两年来iphone 手机出现的问题,做下记录。
1,时间处理问题,之前不知道什么情况下 获取出来的时间是美国时间转出来不对不正确。格式不能是 年-月-日 应转为 年/月/日
2,浏览器定位定位在绝对元素中时候,浏览器定位会在绝对定位中的元素。一般的都不会在绝对定位中的元素的。代码如下:

{{this.$store.state.count}}

{{this.$store.getters.getStateCount}}

.book_img__box{
position: relative;
background-color: #f3f3f3;
overflow: hidden;
img.placeholder_img{
width: 100%;
display: block;
}
img.lazy__book{
position:absolute;
width: 100%;
height: auto;
left: 0;
top: 0;
z-index: 1;
}
img.lazy__book[lazy=loading]{
width: 1.6rem !important;
height: 1.6rem !important;
left: 50% !important;
top: 50% !important;
margin-left: -0.8rem;
margin-top: -0.8rem;
background-size: 100% auto;
opacity: 0.6;
}
}

发布了55 篇原创文章 · 获赞 2 · 访问量 6万+

猜你喜欢

转载自blog.csdn.net/wqs15192095633/article/details/97771298