简体   繁体   中英

Emoji shrink on mobile safari ( and UIWebView )

This is a question for both objective-c programmers and HTML/CSS/Javascript programmers

When I try to put Emojis on my website with a large font via CSS it works fine on my laptop but when I view it on my iPhone's browser the emoji shrinks but the rest of the text stays large.

Go here on a laptop: http://jsfiddle.net/yfvuX/ Then go there on an iPhone...

See the difference?

How can I fix this? Either in my UIWebView (Objective-C) or on the website itself (HTML/CSS/Javascript)

It works for me when I set the font to Apple Color Emoji like this:

font-family: 'AppleColorEmoji';

But in my opinion the icons don't look good at huge sizes.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM