2013-10-28 4 views
1

기본 입력 CSS가있는 WordPress 테마가 있습니다.기본 CSS 속성 덮어 쓰기

input, input[type="text"], input[type="password"], input[type="datetime"],  input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .uneditable-input { 
border: none !important; 
background-color: #f0efed; 
line-height: 40px; 
font-size: 16px; 
color: #555; 
border-radius: 0px; 
-moz-border-radius: 0px; 
-webkit-border-radius: :0px; 
box-shadow: none !important; 
-webkit-box-shadow: none !important; 
-moz-box-shadow: none !important; 
box-sizing: border-box; 
-moz-box-sizing: border-box; 
-webkit-box-sizing: border-box; 
height: 40px; 
} 

나는 같은 단지 특정 사업부에서 'text'and'제출 '로 입력 스타일을 재정의합니다.

샘플 HTML은 :

<div class="checkout_page_container"> 
<table class="checkout_cart"> 
<tr> 
<td><input type="text" /></td> 
</tr> 
</table> 
</div> 

나는이 CSS를 시도하고있다. 그러나 그들은 일하지 않을 것이다 ..

.checkout_page_container .checkout_cart input[type="text"] { 
border: 1px solid #666; 
} 

.checkout_page_container .checkout_cart input[type="submit"] { 
border: 1px solid #ccc; 
color:#000; 
} 

나는 인물 요소를 할 때. 브라우저는 여전히 테마의 기본 입력 스타일을 감지합니다.

답변

3

wordpress 테마에는 "border : none! important;"가 있습니다. ! important는 우선 순위가 높은 스타일에 의해 작성되지 않을 것임을 의미합니다.

당신은 그 그것을 해결하기 위해 제거 할 수 있지만,이 페이지에 다른 문제를 일으킬 수있는 (! 중요한 것은 대부분의 상황에서 조금 더러운하지 좋습니다, 그래서 아마 이유가 사용 된 것)

0

사용 "mystyle : value! important"코드 아래에 아래에 WordPress 스타일 시트를 넣으십시오. 이것은 WordPress의 스타일을 덮어 씁니다.

+0

나는 중요한 것을 사용하는 것이 위험하다는 것을 들었습니다. –

+0

@JeremiLiwanag 내가 아는 것은 아닙니다. 나는 절대적으로 필요한 경우에만 중요한 것을 사용합니다. – sheng