如何在网站上使用macron [英] How to use macron on website

查看:87
本文介绍了如何在网站上使用macron的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我正在尝试将macron用于我的网站,但它看起来并不像真正的macron,看起来很奇怪。假设我想写'毛利'这个词,但是在某些字体样式中它看起来并不那么好。因此,如果我写ma-ori然后使用CSS来对齐' - '来签署'a'来制作一个macron字。有人认为这应该是可能的吗?



干杯!

Hello there, I am trying to use macron for my website but it doesn't look like a real macron and look very strange. Suppose i want to write word 'Māori' but in some font style it doesn't appear so well. so if i write ma-ori and then use CSS to align '-' sign over 'a' to make a macron word. Does anyone think this should be possible?

Cheers!

推荐答案

我不知道用CSS移动它,我怀疑它。但你可能会考虑使用SVG作为获得你想要的精确外观的替代方法。
I don't know about moving it over with CSS, I doubt it. but you might look into SVG as an alternative to getting the exact look you want.


如果你想仅对齐' - ''签署'a'

If you want to align only '-' sign over 'a'
<p class="macron">M<span class="mc-word">a<span>cron</p>




.macron{ font-size: 60px; }

.mc-word:before{
  display: block;
  content: '';
  height: 2px;
  width: 10px;
  background-color: #000;
  position: absolute;
  margin: 0 auto;
  margin-top: -50px;
  margin-left: 60px;
}





对于所有macron字,您可以使用HTML代码。 ie

查看完整列表此处 [ ^ ]和W3C [ ^ ]



-KR



And for all the macron word, you can use HTML codes. i.e Ā
See the complete list here[^] and W3C[^]

-KR


这篇关于如何在网站上使用macron的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆