jQuery Color Contrast: a 20-line solution | codeitdown.com

Contrasting the text with the background color is a extremely simple task. Downloading a full-blown plugin is overkill in most cases. A simple function can take care of it by chosing between black and white color based on the background. Of course it won't detect background image colors, but setting a similar fallback color along …

Source: jQuery Color Contrast: a 20-line solution | codeitdown.com


新着記事

コメントは受け付けていません。