記住以下片段:如何垂直對齊使用SVG跨瀏覽器兼容的文本?
<svg style="" width="60" height="60">
<rect
x = "0"
y = "0"
rx = "1"
ry = "1"
width = "17"
height = "15"
fill = "rgb(254,199,186)"
stroke = "rgb(152,119,111)"
stroke-width = "1">
</rect>
<text
x = "8"
y = "8"
fill = "rgb(50,39,37)"
font-size = "16"
font-family = "monospace"
alignment-baseline = "middle"
text-anchor = "middle">
a
</text>
</svg>
Chrome的渲染片斷代碼爲:
而在FireFox中,這是結果:
我怎麼能複製這個片斷在一個跨瀏覽器兼容的方式?
關聯:[Firefox支持alignment-baseline元素?](http://stackoverflow.com/questions/19212498/firefox-support-for-alignment-baseline-property) – TylerH