input消除默认,代码如下    input{             -webkit-tap-highlight-color: rgba(255, 255, 255, 0);              -webkit-user-select: none;             -moz-user-focus: none;             -moz-user-select: none;             -webkit-appearance:none;             …
input消除默认,代码如下    input{             -webkit-tap-highlight-color: rgba(255, 255, 255, 0);              -webkit-user-select: none;             -moz-user-focus: none;             -moz-user-select: none;             -webkit-appearance:none;             …
一.切UIView的某个角为圆角 如果需要将UIView的4个角全部都为圆角,做法相当简单,只需设置其Layer的cornerRadius属性即可(项目需要使用QuartzCore框架).而若要指定某几个角(小于4)为圆角而别的不变时,怎么做呢? 其实很简单,使用UIBezierPath,设置CAShapeLayer,给UIView设置遮罩效果即可. // 图标左上.左下切圆角 UIBezierPath *phoneIconPath = [UIBezierPath bezierPathWithR…
1.在谷歌浏览器会出现默认点击input框黄色背景,如何去除? //消除google浏览器黄色框 input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus { box-shadow:0 0 0 60px #eee inset; //背景颜色 -webkit-text-fill-color: #878787; //字的颜色 } 2. 去掉所以点击时背景有边框或者虚框加个样式就行,如: :fo…
<input type="password" class="form-control" name="passWord" required="" placeholder="输入密码"> required属性,提交表单时,如果input的value值为空,则提示该字段不能为空…
1.当时间为2013-09-05时正常显示 <input class="form-control" name="applytime" type="date" value="2013-09-05"> 2.后台返回数据: Wed Feb 05 00:00:00 CST 2020 回显失败…
FastClick 移动设备上的浏览器默认会在用户点击屏幕大约延迟300毫秒后才会触发点击事件,这是为了检查用户是否在做双击.为了能够立即响应用户的点击事件,就有了FastClick. 安装fastclick可以使用npm,Component和Bower.另外也提供了Ruby版的gem fastclick-rails以及.NET提供了NuGet package. npm install fastclick import   FastClick   from 'fastclick';   Vue.…
之前翻译过一篇关于fastclick的快速点击文章http://www.cnblogs.com/lilyimage/p/3568773.html,fastclick可以解决在手机上点击事件的300ms延迟:另外我们也知道zepto的touch模块,帮助我们实现了很多手机上的事件,比如tap等,tap事件也是为了解决在click的延迟问题.那么他们有什么区别呢? 先看zepto的touch模块实现: $(document) .on('touchstart ...',function(e){ ...…
本篇内容不针对canvas文档对每个api进行逐个的详解! 本篇内容不针对canvas文档对每个api进行逐个的详解! 本篇内容不针对canvas文档对每个api进行逐个的详解! 重说三,好了,现在进入正文.在上一回<从web图片裁剪出发:了解H5中的blob>中我解释了图片在浏览器中以怎样的形式留存,并且在最后一个example中演示了选择图片.预览最后提交的过程.然而这个预览并没有起到什么卵用,因为只能预览不能处理,原图片还是原图片,预览变得可有可无.这一篇我们就在预览这一步里做点手脚,加…