Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.2k views
in Technique[技术] by (71.8m points)

html - Unicode ☰ hamburger not displaying in Android & Chrome

I noticed that my hamburger menu icon has stopped displaying in Chrome for Android and also, in the Android browser now I simply get the missed icon image. It still works in all desktop browsers, in Safari and on Windows phone browsers.

I've created a test page to show the problem, included below. I'm confused about this as two months ago it was working fine when testing was completed and nothing has been changed or updated since.I wondered if anybody had any advice? Has something changed recently to cause this - do I need to look at alternative methods?

<!DOCTYPE html>
<html>
<head>
<style>    
p.sansserif {font-family: Arial, Helvetica, Verdana, sans-serif;}
</style>
</head>
<body>

<p class="sansserif">This is the hamburger, &#9776; , there. </p>

</body>
</html>
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I've worked around this problem by using the UNICODE character UNICODE U+2261 (8801), ≡ IDENTICAL TO as illustrated below rather than the UNICODE U+2630 (9776) ☰ TRIGRAM FOR HEAVEN which seems to have font support issues on my Android devices.

<p class="sansserif">&#8801; Menu </p>

I preferred not to do it with an image for simplicity and resizing.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...