html - iOS 7 Safari 强制使用粗体按钮

标签 html ios css safari stylesheet

我有一个带有以下 HTML 和 CSS 的按钮:

<button type="button" class="wrapper">
    <p class="text">Preferences</p>
</button>


.wrapper {
    height: 80px;
    top: 0px;
    line-height: 80px;
    position: absolute;
    left: 34px;
}

.text {
    display: inline-block;
    margin: auto 0 auto 0;
    padding: 0 21px 0 20px;
    font-size: 26px!important;
    vertical-align: middle;
    line-height: 32px!important;
    font-weight: 500!important;
    text-align:justify;
}

除了字体为 BOLD 的 iOS 7 Safari 之外,它在每个浏览器中都能正确呈现。我假设 Apple 正在覆盖我的 CSS 并强制字体加粗。有没有办法让字体粗细“正常”

最佳答案

您可以尝试在 .text 中进行以下修改:

font-size: 26px;
font-weight: 100;

关于html - iOS 7 Safari 强制使用粗体按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23616538/

相关文章:

iOS- BLE <CBCharacteristic : does not specify the "Write Without Response" property - ignoring response-less write

php - CSS中 `<%= className %>`这样的行叫什么?

css - 为什么 CSS 位置属性会影响旋转动画?

C# ASP.NET 如何通过代码隐藏修改 CSS 类

javascript - jquery移动: Uncaught TypeError: Cannot read property 'abort' of undefined error in ajax call

html - 让 div 在标记中以与它们在页面上不同的顺序出现是否违反标准?

javascript - 如何在错误时摇动登录表单

javascript - 在钛javascript中将屏幕移动到图像上

ios - UITableView设置estimatedRowHeight有什么影响?

html - 使用 min-width 将 div 宽度设置为 % 不起作用。最小宽度总是赢。