css - 按钮结果不理想

标签 css ipad safari

为什么当我在模拟 iPad 的 Chrome Canary 上测试我的页面时,我得到了这个结果,

enter image description here

但是在真实设备上测试时我得到了这个 enter image description here

我正在努力达到最高水平,但由于某种原因无法做到。有任何想法吗? Chrome Canary 可靠吗?这是 CSS

@import url(http://fonts.googleapis.com/css?family=Open+Sans:300);

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
background: #fff;
color: #7b8993;
font: 300 87.5%/1.5em 'Open Sans', sans-serif;
}

.form-wrapper {
padding-top: 10%;
border-radius: 2px;
margin: 50px auto;
position: relative;
width: 375px;
}

form {
padding: 30px 20px 0;
}

.form-item {
margin-bottom: 10px;
width: 100%;
}

.form-item input {
border: 1px solid #ccc;
border-radius: 2px;
color: #000;
font-family: 'Open Sans', sans-serif;
font-size: 1em;
height: 50px;
padding: 0 16px;
transition: background 0.3s ease-in-out;
width: 100%;
}

.form-item input:focus {
outline: none;
border-color: #9ecaed;
box-shadow: 0 0 10px #9ecaed;
}

.button-panel {
margin: 20px 0 0;
width: 100%;
}

.button-panel .button {
background: #009dff;
border: none;
border-radius: 2px;
color: #fff;
cursor: pointer;
height: 50px;
font-family: 'Open Sans', sans-serif;
font-size: 1.2em;
letter-spacing: 0.05em;
text-align: center;
text-transform: uppercase;
transition: background 0.3s ease-in-out;
width: 100%;
}

.button:hover {
background: #00c8ff;
}

@media only screen
and (max-width : 320px) {
.form-wrapper {
padding-top: 10%;
border-radius: 2px;
margin: 50px auto;
position: relative;
width: 320px;
}
}


.cent {
text-align: center;
color: #000;
}

.view {
text-align: center;
text-decoration: none;
color: #7b8993;
padding-top: 5px;
}

#ref {
text-align: center;
text-decoration: none;
color: #7b8993;
padding-top: 8px;
font-size: 16px;
}

#ref:hover {
text-align: center;
text-decoration: none;
color: #009dff;
-webkit-animation: hue 60s infinite linear;
padding-top: 8px;
font-size: 16px;
}

最佳答案

您需要将以下内容添加到 button 元素以删除默认样式。

-webkit-appearance: none;

关于css - 按钮结果不理想,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23639989/

相关文章:

javascript - 嵌入谷歌地图的 iFrame 上的 CSS 边框半径不起作用

iphone - iOS 应用程序因区域设置更改而崩溃

javascript - 仅在 Safari 浏览器中未触发 Keyup 事件?

html - 如何修复 ipad air 中的 "Div background color not changing from white to transparent"(Safari 浏览器)

javascript - e.stopPropagation 不工作

html - 在一行上 float 元素,使最后一个元素溢出

css - Django ,内容安全策略指令

objective-c - 本地通知?

ipad - iPAD 中 Safari 的 DOM 检查器

google-chrome - Chrome 与 Firefox 后台缓存