2015-01-16 1 views
0

나는이 이미지를 사용하지만 크롬을 망쳐 놨 내가제거 입력 배경색 만

input:-webkit-autofill { 
    -webkit-box-shadow: 0 0 0px 1000px white inset; 
} 

그래서 인 솔루션으로 모든 양식을 교체하지 않으려는 특정 배경 주변에 어떤 방식으로는 덜 일반화되고보다 정확합니다.

<li>{{ Form::email('email', '', array('placeholder' => 'E-mail', 'autocomplete'=>'off')) }}</li> 
<li>{{ Form::password('password', array('placeholder' => 'Password', 'autocomplete'=>'off')) }}</li> 

을하고 그것을위한 CSS는 이것이다 :

HTML 코드는 다음과 같이 그래서 내가 laravel을 사용하고

#email-field{ 
    background:#fff url(../../img/site/username.png) no-repeat 12px center 
} 
#pass-field{ 
    background:#fff url(../../img/site/icon_password.png) no-repeat 12px center 
} 
+0

가능한 중복 : HTTP : // 유래. co.kr/questions/2338102/override-browser-form-filling-and-input-highlighting-with-html-css – hungerstar

답변

2
#email-field:-webkit-autofill, 
#pass-field:-webkit-autofill { 
    -webkit-box-shadow: 0 0 0px 1000px white inset; 
}