zoukankan      html  css  js  c++  java
  • 微信小程序中的ios兼容性问题

    1.ios中input的placeholder属性字体不居中

    对placeholder设置line-height及font-size
    对input设置高度

    2.ios中滚动卡顿

    设置-webkit-overflow-scrolling:touch;

    3.微信小程序中解决ios中new Date() 时间格式不兼容

    在实现日期时间对比时,时间格式为”2018-11-12 11:12:11”,然后利用new Date() 转换时,ios中无法兼容,安卓中显示正常
    原因:IOS支持的日期类型为2018/11/12,所以把"-"替换成"/",则IOS和安卓都可兼容

    let time = '2018-12-10 11:11:11'; 
    let temporaryTime = new Date(time.replace(/-/g,'/'));
    

    4. 微信小程序scroll-view隐藏滚动条方法

    在wxss里加入以下代码:

    ::-webkit-scrollbar{  0; height: 0; color: transparent; }
    

    参考原文: http://www.okeydown.com/html/2018/11-02/956.html
  • 相关阅读:
    java面向对象(五)之多态
    java集合(list,set,map)
    jQuery基础
    Numpy详解
    Pandas详解一
    Linux 解压缩
    Linux 磁盘挂载
    Linux 磁盘管理
    su和sudo命令详解
    Linux查看文件命令
  • 原文地址:https://www.cnblogs.com/hong01072/p/14904529.html
Copyright © 2011-2022 走看看