项目G2SVG.text转换
生活随笔
收集整理的這篇文章主要介紹了
项目G2SVG.text转换
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
1、這里,下面兩種 文字的呈現(xiàn)效果是一樣的,<p/>中的 font-size:20沒有加上"px" 因此沒有效果 還是使用的默認值
于是,暫時 得到結論,回車 換到下一行顯示文字 這里的 y值,實際上就等于 在本行<text/>的 descent處 +1px ! !
<text x="191" y="185" fill="white" alignment-baseline="text-before-edge" >東怡變04<tspan x="191" dy="40px" alignment-baseline="text-before-edge">怡</tspan> </text><switch><foreignObject width="1000" height="1000" x="191" y="185"><p xmlns="http://www.w3.org/1999/xhtml" p_FontHeight="20" p_ItalicFontFlag="0" id="8000030" p_BoldFontFlag="0" m_DYModelType="0" p_ZoomMaxLevel="0" p_FontWidth="20" style="margin:0; font-size:20; color:rgb(255,255,254); font-family:Bitstream Charter; " p_AssFlag="128" p_MatrixFontFlag="0" p_ShowModeMask="3" p_SelfDefString="" switchapp="1" p_DyColorFlag="0" p_EngcodeString="" af2="0" p_NameString="" af3="7" af4="0" af="34831" transform="rotate(0) scale(1,1)" p_FontDeltaX="0" p_FontDeltaY="0" stroke-width="2">東<br/><br/> 怡<br/><br/> 變<br/><br/> 04</p></foreignObject><text>Your SVG viewer cannot display html.</text></switch>?
2、
3、
4、
5、
6、
?
轉載于:https://www.cnblogs.com/DrMess/p/9914914.html
總結
以上是生活随笔為你收集整理的项目G2SVG.text转换的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 把数据保存到数据库附加表 `XX_add
- 下一篇: 月薪两万为什么在老乡鸡点三个肉菜