html - 如何修复此 CSS 在 iPhone Safari 上的显示?

标签 html ios css iphone safari

它适用于 Chrome 桌面

Imgur

但不是 Safari iOS

Imgur

这是CSS

.button {
    border: 1px outset $color3;
    background: $color1;
    color: $color4;
    font-size: 80%; // A little smaller because it's in uppercase
    text-transform: uppercase;
    display: inline;
    margin-left: 5px;
    margin-right: 5px;
}

我试过 font-size: smaller、0.8em 等,但没有用。 50% 或 0.5em 在 iPhone 上看起来不错,但在桌面上太小了。 text-transform 没关系。 padding: 1px; 没有帮助。

最佳答案

将显示更改为内联 block ,并在顶部添加填充

关于html - 如何修复此 CSS 在 iPhone Safari 上的显示?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22084075/

相关文章:

ios - 如何重新解析 tableView 中的 xml 数据?

python - 'NoneType' 对象没有属性 'DoesNotExist'

html - 如何将元素附加到底部

html - 更改容器在 Bootstrap 中的位置

html - 使用 BlackBerry 4 OS 呈现电子邮件

css - div 填充屏幕剩余空间

javascript - 基于光标位置的背景颜色、特定色谱

javascript - 本地 html 文件不会运行 javascript(在任何浏览器上)

iphone - TableView : Data overlapped while delete the row

ios - 带有 systemFontOfSize 的新 San Francisco 文本字体