首页 文章

用于iPad和iPhone的样式输入按钮

提问于
浏览
189

我正在使用CSS来设置我网站上的输入按钮的样式,但在IOS设备上,样式被Mac的默认按钮取代 . 是否有一种方法可以为iOS设置样式按钮,或者可以创建一个行为类似于提交按钮的超链接?

4 回答

  • 9

    -webkit-appearance:none;

    注意:使用bootstrap来设置按钮的样式 . 它通常用于响应 .

  • 9

    我最近自己遇到过这个问题 .

    <!--Instead of using input-->
    <input type="submit"/>
    <!--Use button-->
    <button type="submit">
    <!--You can then attach your custom CSS to the button-->
    

    希望有所帮助 .

  • 479

    请添加此css代码

    input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    }
    
  • 0

    你可能正在寻找

    -webkit-appearance: none;
    

相关问题