我遇到了最令人沮丧的问题。我试图将文本输入字段和提交按钮连接在一起。
当我在Firefox中查看它时,一切看起来都很棒,但在Safari上,提交按钮的宽度并不像它应该的那么宽。
注意"现在加入"此图片中的按钮:
有谁可以帮助我弄清楚这里出了什么问题?
这是指向小提琴的链接:https://jsfiddle.net/bf2qaycr/
.form-button-append {
position: relative;
display: flex;
align-items: center;
}
.form-button-append input {
border-right: 0;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
.form-button-append button {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
button, input {
outline: none;
box-shadow: none;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
-webkit-border-radius: 0;
border-radius: 0;
color: #3b3b3b;
font-family: inherit;
font-size: inherit;
text-decoration: none;
display: inline-block;
white-space: nowrap;
margin: 0;
padding: 0.2em 0.4em;
width: 100%;
-webkit-transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
border-width: 1px;
border-style: solid;
border-color: #d4d4d4;
background: #fff;
overflow: visible;
}
button {
width: auto;
cursor: pointer;
background: #666;
color: #fff;
}

<div class="form-button-append">
<input id="EmailJoin" placeholder="Email Address" type="email">
<button type="submit">JOIN NOW</button>
</div>
&#13;