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的快速点击文章http://www.cnblogs.com/lilyimage/p/3568773.html,fastclick可以解决在手机上点击事件的300ms延迟:另外我们也知道zepto的touch模块,帮助我们实现了很多手机上的事件,比如tap等,tap事件也是为了解决在click的延迟问题.那么他们有什么区别呢? 先看zepto的touch模块实现: $(document) .on('touchstart ...',function(e){ ...…
FastClick 移动设备上的浏览器默认会在用户点击屏幕大约延迟300毫秒后才会触发点击事件,这是为了检查用户是否在做双击.为了能够立即响应用户的点击事件,就有了FastClick. 安装fastclick可以使用npm,Component和Bower.另外也提供了Ruby版的gem fastclick-rails以及.NET提供了NuGet package. npm install fastclick import   FastClick   from 'fastclick';   Vue.…
最近在做一个微信端的项目,快到接近尾声的时候,发现还没放入音频,于是乎,放入音频,在电脑端测试一切正常,无阻碍. 后来在手机上测试,发现背景音乐不能播放,于是开始找错,刚开始以为是IIS服务器出错,结果经过各种测试,发现不是IIS的问题,继续找错,又以为是标签使用不当,然后当时利用html4的object 和embd标签代替,embd标签能播放声音,但是却有许多bug,总之各种舒服. 于是,经过多方询问,以及百度,最后才知道,原来是手机上的浏览器对音频.视频的自动播放功能在去年的九月底就已经屏蔽…