修复iPhone上submit按钮bug

来自:http://www.w3cplus.com/node/271

原来问题出在这里,iPhone上的safari解析input[type="submit"]和input[type="reset"]按钮会以苹果浏览器的默认UI渲染,这样就出现我刚才那种现像,我们在样式中明确的设置了button的圆角值,但到iPhone的safari上就不生效了。要想让他生效,就需要在样式中明确的指名:

1 .form-actions input{
2         ...    
3        -webkit-appearance: none;     
4 }

 

posted @ 2015-08-31 16:19  Gleeeee  阅读(125)  评论(0编辑  收藏  举报