如何在网站上使用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