css解决ios端按钮和输入框自带圆角的问题
2016-12-29 14:29
519 查看
请在这里查看示例 ☞ borderRadius示例
border-radius: 0;/解决ios上输入框圆角问题/
ios端示例截屏如下:
问题重现
在ios端,我们不想使用按钮或输入框自带的圆角样式,改如何取消呢?问题解决
-webkit-appearance : none ;/解决ios上按钮的圆角问题/border-radius: 0;/解决ios上输入框圆角问题/
ios端示例截屏如下:
示例源码
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/> <title>demo</title> <style> * { margin: 0; padding: 0; } body, html { width: 100%; height: 100%; } button, input { width: 90%; margin: 0 auto; display: block; box-sizing: border-box; height: 50px; line-height: 50px; } .bBtn { -webkit-appearance : none ;/*解决ios上按钮的圆角问题*/ } .bInput { border-radius: 0;/*解决ios上输入框圆角问题*/ } </style> </head> <body> <button class="aBtn">ios这个按钮有圆角</button> <button class="bBtn">ios这个按钮没有圆角</button> <input class="aInput" type="text" placeholder="ios这个输入框有圆角"/> <input class="bInput" type="text" placeholder="ios这个输入框没有圆角"/> </body> </html>
相关文章推荐
- 解决html页面中含有input输入框fixed布局底部按钮在Android和ios中被弹起的问题
- CSS清除ios设备表单按钮自带样式问题
- 解决iOS输入框和button圆角问题
- 编写手机端自适应页面案例,springMVC代码,SpringMVC上传代码,去掉input框中原有的样式,使ios按钮没有圆角,css中的border-radius类似
- [iOS]解决键盘弹出时挡住输入框的问题
- IOS 解决键盘挡住输入框的问题
- iOS 解决键盘挡住输入框的问题
- IOS开发问题解决之限制UITextField输入特定位数小数时,Done按钮失效
- IOS开发键盘弹出时遮住输入框的问题的一种解决方法。
- 解决 iOS webkit 使用CSS动画时闪烁的问题
- iOS 根据父视图布局的方法 以及实现 Scrollview 拉动 遮罩输入框问题解决
- 解决ios safari中按钮圆角问题
- iOS 解决键盘挡住输入框的问题
- 解决extjs4.1在IE和FF下面字体太上问题,以及按钮的字体是斜体的问题,在extj-all.css后加
- 如何创建镂空圆角按钮以及解决某些机型绘制问题
- ios 解决键盘挡住输入框的问题
- 解决ios safari中按钮圆角问题
- 解决ios safari中按钮圆角问题【原创】
- IOS学习笔记36—解决键盘遮挡输入框(UITextField)问题
- 解决ios safari中按钮圆角问题