技术咨询:何处获取Material Icons代码及官网图标变更疑问
Hey there, I totally get your frustration—when the Material.io site updated, it really hid those old icon codes that were so useful for IE9 and below. Here are a few reliable ways to get the Unicode codes you need:
Check the official Material Icons GitHub repo
The icon font files and their corresponding codepoints are still maintained in the repo. Look for thecodepointsfile in theiconfontdirectory—it’s a plain text file where each line lists an icon name followed by its hexadecimal Unicode code (e.g.,camera_enhance E8FC). You can also peek into thematerial-icons.cssfile, which maps each icon class to itscontentvalue (likecontent: "\e8fc"forcamera_enhance).Use your browser’s DevTools
Load any page that’s using Material Icons with the class-based syntax (like<i class="material-icons">camera_enhance</i>). Inspect that<i>element, then look at the::beforepseudo-element in the Styles panel. Thecontentproperty will show you the escaped Unicode code for the icon—this is exactly the value you’d use for older IE compatibility.Grab a community-maintained snapshot
Some developers have archived or mirrored the older Material Icons documentation that included the codepoint references. You can find these by searching for "Material Icons codepoints archive"—just make sure to use a trusted source to get accurate, up-to-date codes.
It makes sense that the official site now prioritizes the class-based syntax since most modern browsers handle it smoothly, but those old codepoints are still around for legacy support.
内容的提问来源于stack exchange,提问作者Pavel

