html - iPad 按钮没有获得自定义 CSS

标签 html ios css ipad

我已经为按钮提供了自定义 CSS。它适用于:

  • Windows 桌面(Chrome、Opera、Edge)
  • 通过控制台移动设备演示的 Windows 桌面
  • Android(歌剧、Chrome)
  • iOS(Safari、Chrome)

问题是在 iPad 上它不起作用。

CSS 是这样的:

input[type="button"],
    button,
    .theater-control-button {
        -webkit-appearance: none; /*Safari/Chrome*/
        -moz-appearance: none; /*Firefox*/
        -ms-appearance: none; /*IE*/
        -o-appearance: none; /*Opera*/

        -webkit-border-radius: 0;
    }

在 iPad 上它看起来高度:15 像素,边框半径:30 像素。

最佳答案

你应该尝试改变你的

<button type="button"> 

<button type="submit"> 

在您的 HTML 中

当然,在你的 CSS 中

input[type="submit"],
    button,
    .theater-control-button {
        -webkit-appearance: none; /*Safari/Chrome*/
        -moz-appearance: none; /*Firefox*/
        -ms-appearance: none; /*IE*/
        -o-appearance: none; /*Opera*/

        -webkit-border-radius: 0;
    }

这解决了我在 iPad 上遇到的同样问题,希望对您有所帮助。

关于html - iPad 按钮没有获得自定义 CSS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47135859/

相关文章:

ios - 更改UIButton内的SF符号大小

ios - RTP iPhone 相机 - 如何在写入时读取 AVAssetWriter 文件?

css - Angular Material md-list flexing

c# - 使用 HTMLAgilityPack 解析 javascript HTML

javascript - 如何在 jQuery 弹出窗口中显示下拉选择列表并检索所选值

html - 浏览器缩放期间按钮内的动态文本

html - Umbraco 截断

ios - 与 UIWebView 共享 WKWebView Cookie

CSS 下拉菜单被照片隐藏

jquery - 将背景图像缩放到部分 - bootstrap