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
145 views
in Technique[技术] by (71.8m points)

html - The copyright symbol (©) is appearing smaller on Mac browser

The copyright symbol (©) is appearing smaller on my Mac browser. I have tried © and the ::before pseudo element but they are rendered smaller than the text surrounding it on Macs. Do I have to insert an image to make this work?

<p class="copyright-text">
  &copy;Copyright <span class="current-year"></span> (company name). All Rights Reserved
</p>
question from:https://stackoverflow.com/questions/66058221/the-copyright-symbol-copy-is-appearing-smaller-on-mac-browser

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

1 Reply

0 votes
by (71.8m points)

(NOTE: SO was giving me fits, interpreting html examples, so I had to quote them)

  1. You don't tell us what font you're using; perhaps it is not installed on your Mac, and it's defaulting to a different font? Inspect and verify that it's displaying the font that you think it is.

  2. Try changing the font of the copyright symbol to a fixed-width or type safe font; like Georgia, Consolas, or Verdana, like so:

// Style
copyright { font-family: Georgia, Consolas, Verdana }

<span class="copyright">&copy;</span>

? Copyright 2021, Amalgamated Bipartisan Conglomerates

<p class="copyright-text">
    <span style="font-family: Georgia, Consolas, Verdana">&copy;</span>Copyright <span class="current-year"></span> (company name). All Rights Reserved
</p>
  1. If you set your character set to UTF-8, you can also try just using the symbol itself (not the &copy;) like so:
meta charset="UTF-8">
span class="copyright">?</span>
<p class="copyright-text">
    <span style="font-family: Georgia, Consolas, Verdana">?</span>Copyright <span class="current-year"></span> (company name). All Rights Reserved
</p>

? Copyright 2021, Amalgamated Bipartisan Conglomerates


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

...