解决ios中input兼容性问题
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兼容性问题的更多相关文章
- IOS中input键盘事件支持的解决方法
欢迎大家去我的网站详细查看http://genghongshuo.com.cn/ IOS中input键盘事件keyup.keydown.等支持不是很好, 用input监听键盘keyup事件,在安卓手机 ...
- 解决iOS中tabBarItem图片默认颜色的问题(指定代码渲染模式为以原样模式的方式显示出来)
解决iOS中tabBarItem图片默认颜色的问题(指定代码渲染模式为以原样模式的方式显示出来) 解决办法:指定图片的渲染模式(imageWithRenderingMode为:UIImageRende ...
- 解决iOS中 tabBarItem设置图片(image+title切图在一起)时造成的图片向上偏移
解决iOS中 tabBarItem设置图片(image+title切图在一起)时造成的图片向上偏移 解决办法1:设置tabBarItem的imageInsets属性 代码示例: childContro ...
- JS 解决 IOS 中拍照图片预览旋转 90度 BUG
上篇博文[ Js利用Canvas实现图片压缩 ]中做了图片压缩上传,但是在IOS真机测试的时候,发现图片预览的时候自动逆时针旋转了90度.对于这个bug,我完全不知道问题出在哪里,接下来就是面向百度编 ...
- 日期格式在ios中的兼容性
在IOS中支持 2017/3/2 这种格式的日期 不支持2017-3-2日期 /** * 返回兼容ios.android的日期时间格式 * @param dateTime String * @retu ...
- IOS中input光标跑偏问题的解决方法
ios端兼容input光标高度处理 在最近的项目中遇到一个问题,input输入框光标,在安卓手机上显示没有问题,但是在苹果手机上 当点击输入的时候,光标的高度和父盒子的高度一样.造成的原因就是给父盒子 ...
- IOS中input键盘事件keyup 的兼容解决办法
用input监听键盘keyup事件,在安卓手机浏览器中是可以的,但是在ios手机浏览器中很慢,用输入法输入之后,并未立刻相应keyup事件. 解决办法: 在ios设备上可以用html5的input事件 ...
- 解决移动端在IOS中input输入框光标过长
在输入框样式中加入: line-height:20px;
- ios中input输入无效
项目中一个登陆界面的input在安卓下可以输入,iOS下无法输入,经查询为 设置了-webkit-user-select:none;将其改为-webkit-user-select:auto;修正. 参 ...
随机推荐
- 通过Redis的list来实现 Server - Client 的同步通信
Redis实现类似同步方法调用的功能(一) 首先声明,这么干纯粹是为了好玩. 通常我们用Redis主要是为了存储一些数据,由于数据在内存里,所以查询更新很快.同时我们也可以利用 Pub/Sub 功能来 ...
- VS2015 osgEarth 编译
E:\OpenSourceGraph\CURL_install\includeE:\GDAL\includeE:\Geos\geos_3_5_install\includeE:\OpenSourceG ...
- ifc tree
ViewerWidget* viewerWidget = new ViewerWidget(ifcModel); viewerWidget ->setRootNode(ifcModel-> ...
- 22Flutter中的常见的按钮组件 以及自定义按钮组件
/* Flutter中的常见的按钮组件 以及自定义按钮组件 一.Flutter中的按钮组件介绍 Flutter里有很多的Button组件,常见的按钮组件有:RaisedButton/FlatButto ...
- 用python查看文件是否存在的三种方式
目录 1.使用os模块 判断文件是否可做读写操作 2.使用Try语句 3. 使用pathlib模块 正文 通常在读写文件之前,需要判断文件或目录是否存在,不然某些处理方法可能会使程序出错.所以最好在做 ...
- 单层反查BOM
*&---------------------------------------------------------------------* *& Report YCX_001 * ...
- 月光大盗(moon thief)
欢迎大家玩月光大盗! welcome to play moon thief!developer email:zhangdeke@126.com
- 使用eclipse插件mybatis generator来自动生成实体类及映射文件
<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE generatorConfiguratio ...
- Haystack--基于Django的全文检索框架
好文章转载自:https://suguangti.cnblogs.com/p/11167097.html 阅读目录 1.什么是Haystack 2.安装 3.配置 4.处理数据 创建索引 5.设置视图 ...
- js 数组去重、去空(收藏)
function unique (arr) { return Array.from(new Set(arr)) } var arr = [1,1,'true','true',true,true,15, ...