gpt4 book ai didi

css - 按钮结果不理想

转载 作者:行者123 更新时间:2023-11-28 17:43:55 24 4
gpt4 key购买 nike

为什么当我在模拟 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com