在苹果手机上尽管设置了button的背景颜色,但在苹果手机上测试时仍会发现背景颜色为透明渐变色,怎么解决呢?
在css公共样式中加上下面代码就可以解决,去除button系统默认appearance的样式,常用于IOS下移除原生样式
input[type=button], input[type=submit], input[type=file], button { cursor: pointer; -webkit-appearance: none; }
在苹果手机上尽管设置了button的背景颜色,但在苹果手机上测试时仍会发现背景颜色为透明渐变色,怎么解决呢?
在css公共样式中加上下面代码就可以解决,去除button系统默认appearance的样式,常用于IOS下移除原生样式
input[type=button], input[type=submit], input[type=file], button { cursor: pointer; -webkit-appearance: none; }