為什莫SVG我的利用<text>標(biāo)簽寫入中文會報(bào)錯呢,而英文沒有問題呢
<svg?xmlns="http://www.w3.org/2000/svg"?> ??<defs> ????????<pattern?id="p1"?x="0"?y="0"?width="20"?height="20"?patternUnits="userSpaceOnUse"?patternContentUnits="objectBoundingBox"> ????????????<path?stroke="#F0F0F0"?fill="none"?d="M0,0H20V20"></path> ????????</pattern> ??</defs> ??<rect?width="1200"?height="1000"?fill="url(#p1)"></rect> ??<text>慕課網(wǎng)</text> </svg>
2017-06-08
我試了你的代碼,中文沒有報(bào)錯了!