2013-03-14 3 views
0

프로젝트에 문제가 있습니다. 잘 모르겠습니다. 크롬과 파이어 폭스가 내 버튼과 같은 높이로 표시되지 않습니다. 나는 주변을 둘러 보았고 파이어 폭스가 버튼에 문제가 있다는 것을 발견 했으므로 아래 코드를 추가했지만 여전히 작동하지 않는다. 뭐가 될수 있었는지?firefox 크롬 패딩 문제가있는 버튼

.button-type::-moz-focus-inner { border: 0; padding: 0; margin:0; } 


.button-type { 
    background: #a9a9a9; 
    -webkit-border-radius: 5px; 
    border-radius: 5px; 
    -webkit-box-shadow: 0 2px 8px rgba(0,0,0,0.3), inset 0 3px rgba(255,255,255,0.2), inset 0 2px rgba(255,255,255,0.2), inset 0 28px 22px rgba(255,255,255,0.2), inset 0 -10px 28px rgba(0,0,0,0.2); 
    box-shadow: 0 2px 8px rgba(0,0,0,0.3), inset 0 3px rgba(255,255,255,0.2), inset 0 2px rgba(255,255,255,0.2), inset 0 28px 22px rgba(255,255,255,0.2), inset 0 -10px 28px rgba(0,0,0,0.2); 
    font: Arial, Helvetica, sans-serif; 
    line-height: 1; 
    padding: 8px 15px; 
    width: auto; 
    height: auto; 
    border: none; 
    text-align: center; 
    font-size: 13px; 
    color: #fff; 
    cursor: pointer; 
    display: block; 
    text-decoration: none; 
    text-shadow: -1px -1px #333; 
} 
.button-type.black { 
    background: #000; 
    color: #fff; 
} 
.button-type.gray { 
    background: #a9a9a9; 
} 
.button-type.light-gray { 
    background: #d3d3d3; 
    color: #222; 
} 

답변

0

하면 그것을 해결 용액 (착오)이었다

display:inline 
:

display:block 

는로 대체