我正在使用CSS来设置我网站上的输入按钮的样式,但在IOS设备上,样式被Mac的默认按钮取代 . 是否有一种方法可以为iOS设置样式按钮,或者可以创建一个行为类似于提交按钮的超链接?
-webkit-appearance:none;
注意:使用bootstrap来设置按钮的样式 . 它通常用于响应 .
我最近自己遇到过这个问题 .
<!--Instead of using input--> <input type="submit"/> <!--Use button--> <button type="submit"> <!--You can then attach your custom CSS to the button-->
希望有所帮助 .
请添加此css代码
input { -webkit-appearance: none; -moz-appearance: none; appearance: none; }
你可能正在寻找
-webkit-appearance: none;
Safari CSS备注-webkit-appearance
Mozilla开发者网络-moz-appearance
4 回答
-webkit-appearance:none;
注意:使用bootstrap来设置按钮的样式 . 它通常用于响应 .
我最近自己遇到过这个问题 .
希望有所帮助 .
请添加此css代码
你可能正在寻找
Safari CSS备注-webkit-appearance
Mozilla开发者网络-moz-appearance