2014-02-20 11 views
0

http://jsfiddle.net/4UA82/1/입력 CSS를

#subscribe-submit input[type="submit"] { 
    text-decoration: none !important; 
    color: #000000 !important; 
    font-size: 12px !important; 
    padding-top: 5px !important; 
    padding-right: 5px !important; 
    padding-bottom: 5px !important; 
    padding-left: 5px !important; 
    background-color: #24890d !important; 
} 
#subscribe-submit input[type="submit"]:visited { 
    text-decoration: none !important; 
    color: #000000 !important; 
} 
#subscribe-submit input[type="submit"]:hover { 
    font-size: 12px; 
    background-color: #2b2b2b; 
    color: #000000 !important; 
} 
#subscribe-submit input[type="submit"]:active { 
    font-size: 12px; 
    background-color: #2b2b2b; 
} 

난 그냥 원하는 배경색으로 가져가이 버튼을 얻기 위해 노력하고 가져가에 변경하고자 제출할하지만 어떤 이유로 작동하지 않습니다. 그래도 초기 설정을 삭제하면

나는 마우스를 얻을 수 있습니다

#subscribe-submit input[type="submit"] { 
    text-decoration: none !important; 
    color: #000000 !important; 
    font-size: 12px !important; 
    padding-top: 5px !important; 
    padding-right: 5px !important; 
    padding-bottom: 5px !important; 
    padding-left: 5px !important; 
    background-color: #24890d !important; 
} 

그래서 내가 무슨 일이 일어나고 있는지 모르겠습니다.

감사합니다.

답변

2

!important 태그

#subscribe-submit input[type="submit"] { 
    background-color: #24890d; 
} 

모든 속성에 !important을 사용할 필요가 제거 제안은 #에서 구독 제출 입력 [유형을 당신의 CSS

+0

사실 모든 '! important' 문장을 제거하십시오 ... 당신은 그들을 과도하게 남용하고 있습니다. 덕분에 –

+0

! 나는이 버튼 css gernerator 플러그인을 사용했고 중요한 태그를 자동으로 넣었다. 나는 그들이 문제를 일으킬 수 있다고 생각하지 않았다. – Scientized

0

를 구성하는 방법에 결함이 있다는 것을 = " ] "제출로 변경

background-color: #24890d!important; 

background-color: #24890d; 
관련 문제