0
我想在我的頁面中呈現一個svg圖像動畫。圖片和文字工作正常,但在Safari和Chrome中可視化時,背景文字會被截斷。SVG背景文本在Safari和Chrome中被截斷
我在HTML中使用的代碼如下
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="1106px" height="auto" viewBox="0 0 1106 558" enable-background="new 0 0 1106 558" xml:space="preserve" preserveAspectRatio="xMinYMin none">
<g id="light_1">
<rect x="334" y="256" fill="#B60C05" width="726" height="58"/>
<text transform="matrix(1.5 0 0 1 345 301)" fill="#FFFFFF" font-family="'Open Sans'" font-size="50" letter-spacing="3.333">SCULTURE - DESIGN</text>
</g>
<g id="light_3">
<text transform="matrix(1.1 0 0 1 500 239)" fill="#B60C05" font-family="Work Sans" font-size="36" letter-spacing="1.5" font-weight="300">ALESSANDRA POLITI PAGNONI</text>
</g>
</svg>
這裏有一個fiddle爲例(檢查是否在Firefox或Safari /鉻中打開它如何出現)用css樣式。
任何人都可以幫助我解決問題?
謝謝我會試試你的建議 –
Paul LeBeau你的答案解決了這個問題。謝謝 –