input-group
입력 필드와 버튼을 포함 하는 간단한 것이 있습니다.
이상한 점은 표시되지 않는다는 것입니다. 색상은 검사 요소에서 확인 된 배경색과 동일하지 않습니다.
나는 JSfiddle을 만들었지 만 아무것도하지 않습니다.
https://jsfiddle.net/u691aw17/
아이디어가 있으신가요?
<!-- language: lang-css -->
/* CSS */
div.input-group {
width: 350px;
margin-left: auto;
margin-right: auto;
font-size: 14px;
input[type="text"]{
width:300px;
height:50px;
font-size: 14px;
}
input[type="text"]::-webkit-input-placeholder{
text-transform: uppercase;
font-size: 14px;
}
input[type="text"]:-moz-placeholder /* Firefox 18- */
{
text-transform: uppercase;
font-size: 14px;
}
input[type="text"]::-moz-placeholder /* Firefox 19+ */
{
text-transform: uppercase;
font-size: 14px;
}
input[type="text"]:-ms-input-placeholder{
text-transform: uppercase;
font-size: 14px;
}
span.input-group-btn button.btn {
width:150px;
height:50px;
line-height: 1em;
padding: 0px;
}
}
.btn {
background-color: green;
color:#ffffff;
}
<!-- language: lang-html -->
<div class="input-group">
<input type="text" class="form-control" placeholder="Email">
<span class="input-group-btn">
<button class="btn" type="button" >Sign up</button>
</span>
</div>
<!-- end snippet -->
Fiddle에서 완벽하게 작동하기 때문에 나머지 스타일에는 분명히 문제가 있습니다.
나는 아마도 font-size: inherit
문제가 있다고 생각합니다 (부모로부터 글꼴 크기 0을 상속받습니다). 해당 규칙을 무시하려면 글꼴 크기를 단추로 설정하십시오.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다