http://jsfiddle.net/Xnbf4/邊界制盒按鈕按下一半時輸入
當啓用邊界框我的按鈕被按下一半時輸入。從輸入中刪除填充「修復」它,但顯然不是一個真正的修復...
按鈕和輸入應內聯(不是按鈕上方的間隙)。
*, *:before, *:after {
-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
}
.input {
display: inline-block;
margin: 5px;
border: 2px solid $web-lines;
padding: 15px;
height: 18px;
}
.input-search {
padding: 15px 25px;
}
.button { /*Default button */
display: inline-block;
position: relative;
margin: 5px;
border: 0;
border-bottom: 3px solid $web-green-darker;
padding: 7px 15px 5px 15px;
color: #fff;
font-weight: 600;
background: #4d913e;
}
我不明白你的問題。你試圖做什麼? – putvande
按鈕和輸入應該是內聯的(不是按鈕上方的空隙)。 Chrome更引人注目。 – Jasard