Last active
March 1, 2019 10:34
-
-
Save ituki/4984c0e8add0a1d7543e to your computer and use it in GitHub Desktop.
【Chrome】オートコンプリートのとき、背景を黄色にしない ref: https://qiita.com/ituki_b/items/094ca16e4ca3f17d8982
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input:-webkit-autofill { | |
-webkit-box-shadow: 0 0 0px 1000px [背景にしたい色] inset; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form autocomplete="off"> | |
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input autocomplete="off"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (navigator.userAgent.toLowerCase().indexOf("chrome") >= 0) { | |
$('input').attr('autocomplete', 'off'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment