My current issue is that I am trying to grey out a button with emojis in it.
Nevertheless it seems that, due the nature of emojis, it is not possible to change the color using HTML / CSS properties.
I.e.:
相关问题
- Views base64 encoded blob in HTML with PHP
- Is there a way to play audio on a mobile browser w
- HTML form is not sending $_POST values
- implementing html5 drag and drop photos with knock
- Adding a timeout to a render function in ReactJS
You can use text shadow
If you're looking to just change the Emoji colour to grey, you can do so using
filter: grayscale
:As a side note, I suggest you use HTML entities for representing Emojis. Not all text editors support Emojis and so they may become corrupt if opened in one. You can use this unicode lookup to find the HTML entity version of your Unicode characters.
If you wish to colour your Emojis in other colours see this answer