1、解决input输入框在iOS中有阴影问题

input{
-webkit-appearance: none;
}

2、checkbox、raido在ios中阴影问题

单选:                                                              多选: 

  单选: <div class="m_radio">
<div class="login_agree">
<input type="radio" name="optionsRadiosinline" id="optionsRadios1" value="option1" checked>
<label for="optionsRadios1" class="input_agree" >加密锁</label>
</div>
<div class="login_agree">
<input type="radio"name="optionsRadiosinline" id="optionsRadios2" value="option2">
<label for="optionsRadios2" class="input_agree">软加密(支持离线激活)</label>
</div>
</div>
 多选: <div class="pro_checkbox">
<input type="checkbox" id="pro_one" name="pro_one">
<label for="pro_one"></label>
</div>
css:
.pro-list label::before {
content: "";
display: inline-block;
width: 20px;
height: 20px;
/*background: #EEE;*/
border:1px solid #999;
vertical-align: middle;
-webkit-border-radius: 50%;
margin-right: 5px;
-webkit-box-sizing:border-box;
-webkit-transition:background ease-in .5s
}
.pro-list input[type="checkbox"]:checked+label::before{
background-color: #4e39c2;
border: 2px #b3b3b3 solid;
}
/*自定义单选框radio样式*/
.pro-list .login_agree {
position: relative;
margin-left:10px;
-webkit-box-sizing:border-box;
vertical-align: middle;
}
.pro-list .login_agree input[type="radio"]{
display: none;
}
.pro-list input[type="radio"]+label::before{
width: 15px;
height:15px;
}
.pro-list .login_agree input[type="radio"]:checked+label::before{
background-color: #f4d345;
border: 1px #ccc solid;
width: 15px;
height:15px;
}
/*自定义复选框checkbox*/
.pro-list .pro_checkbox{
position: relative;
}
.pro-list .pro_checkbox input[type="checkbox"]{
display: none;
}
.pro-list .input_agree,label{font-weight:;font-size:.6rem;}
js部分:
$('.pro_checkbox').find('input[type=checkbox]').bind('click', function(){
$('.pro_checkbox').find('input[type=checkbox]').not(this).attr("checked", false);
});

解决ios中input兼容性问题的更多相关文章

  1. IOS中input键盘事件支持的解决方法

    欢迎大家去我的网站详细查看http://genghongshuo.com.cn/ IOS中input键盘事件keyup.keydown.等支持不是很好, 用input监听键盘keyup事件,在安卓手机 ...

  2. 解决iOS中tabBarItem图片默认颜色的问题(指定代码渲染模式为以原样模式的方式显示出来)

    解决iOS中tabBarItem图片默认颜色的问题(指定代码渲染模式为以原样模式的方式显示出来) 解决办法:指定图片的渲染模式(imageWithRenderingMode为:UIImageRende ...

  3. 解决iOS中 tabBarItem设置图片(image+title切图在一起)时造成的图片向上偏移

    解决iOS中 tabBarItem设置图片(image+title切图在一起)时造成的图片向上偏移 解决办法1:设置tabBarItem的imageInsets属性 代码示例: childContro ...

  4. JS 解决 IOS 中拍照图片预览旋转 90度 BUG

    上篇博文[ Js利用Canvas实现图片压缩 ]中做了图片压缩上传,但是在IOS真机测试的时候,发现图片预览的时候自动逆时针旋转了90度.对于这个bug,我完全不知道问题出在哪里,接下来就是面向百度编 ...

  5. 日期格式在ios中的兼容性

    在IOS中支持 2017/3/2 这种格式的日期 不支持2017-3-2日期 /** * 返回兼容ios.android的日期时间格式 * @param dateTime String * @retu ...

  6. IOS中input光标跑偏问题的解决方法

    ios端兼容input光标高度处理 在最近的项目中遇到一个问题,input输入框光标,在安卓手机上显示没有问题,但是在苹果手机上 当点击输入的时候,光标的高度和父盒子的高度一样.造成的原因就是给父盒子 ...

  7. IOS中input键盘事件keyup 的兼容解决办法

    用input监听键盘keyup事件,在安卓手机浏览器中是可以的,但是在ios手机浏览器中很慢,用输入法输入之后,并未立刻相应keyup事件. 解决办法: 在ios设备上可以用html5的input事件 ...

  8. 解决移动端在IOS中input输入框光标过长

    在输入框样式中加入: line-height:20px;

  9. ios中input输入无效

    项目中一个登陆界面的input在安卓下可以输入,iOS下无法输入,经查询为 设置了-webkit-user-select:none;将其改为-webkit-user-select:auto;修正. 参 ...

随机推荐

  1. React——相关工具概述

    Create a New React App Use an integrated toolchain for the best user and developer experience. This ...

  2. 安装git和关联gitlab拉取代码步骤

    1.双击 “Git-2.9.2-64-bit.exe”文件,一路next安装git程序 2.为github帐号添加SSH keys 3.使用git clone命令从GitLab上同步代码库时,如果使用 ...

  3. 【420】链表实现Quack

    quack.h // quack.h: an interface definition for a queue/stack #include <stdio.h> #include < ...

  4. ubuntu 18.04安装jdk8和eclipse

    JDK8的安装 1.安装ppa sudo add-apt-repository ppa:webupd8team/java sudo apt-get update 2.安装JDK sudo apt-ge ...

  5. Python3多重继承排序原理(C3算法)

    参考:https://www.jianshu.com/p/c9a0b055947b https://xubiubiu.com/2019/06/10/python-%E6%96%B9%E6%B3%95% ...

  6. pip3快速下载paddle

    安装百度的paddle paddle时很慢,后来采用国内的源,速度嗖嗖滴 pip3 install -U paddlepaddle -i https://pypi.douban.com/simple/ ...

  7. QT OpenGLWidget的surfaceFormat

    由OpenGLWidget和QOpenGLFunctions_2_0派生了类,试图使用双帧缓冲(Double Buffer)进行渲染.下面是部分功能代码: initializeGL()中: QSurf ...

  8. Egret入门学习日记 --- 第二十篇(书中 9.1~9.3 节 内容 组件篇)

    第二十篇(书中 9.1~9.3 节 内容 组件篇) 第八章中的内容. 以上都是基本的Js知识,我就不录入了. 直接来看 第9章. 开始 9.1节. 以上内容告诉你,Egret官方舍弃了GUI,使用了E ...

  9. 【计算机视觉】detection/region/object proposal 方法综述文章

    目录(?)[-] Papers 大纲 各种OP方法的回顾 Grouping proposal methods Window scoring proposal methods Aliternate pr ...

  10. go打印九九乘法表

    package main import ( "fmt" ) func main() { for i := 1; i < 10; i++ { for j := 1; j < ...