【发布时间】:2014-05-12 23:13:55
【问题描述】:
我已经从 coreldraw 创建了 SVG 代码,并希望将其内嵌到我的 HTML5 文档中并有几个查询。
SVG 现在有多普遍?关于向后兼容性有什么建议吗?
我已从 svg 中取出样式数据并将其放入我的 css 中,我想这不是问题 - 是吗?我还添加了悬停规则...
.Borderline {stroke:#0099FF;stroke-width:7.45541;stroke-linejoin:round}
.BorderFill1 {fill:#71C6FF}
.BorderFill2 {fill:#CBEAFF}
.BorderFill1:hover {fill: green; }
- 我可以删除以下任何不需要的数据吗? (但我希望它能够工作并且看起来一样)
<svg xmlns="http://www.w3.org/2000/svg" class="myimgleft" xml:space="preserve" width="100px" height="105px" version="1.1" style="shape-rendering:geometricPrecision; text-rendering:geometricPrecision; image-rendering:optimizeQuality; fill-rule:evenodd; clip-rule:evenodd" viewBox="0 0 92 97" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="Layer_x0020_1">
<metadata id="CorelCorpID_0Corel-Layer"/>
<path class="BorderFill1 Borderline" d="M55 51c10,0 18,0 24,0 4,-5 9,-10 9,-15 0,-6 0,-22 0,-32l-16 14c-5,-4 -8,-6 -17,-14l0 47z"/>
<path class="BorderFill2 Borderline" d="M79 51c-5,-1 -41,0 -47,0l0 -14c-8,8 -25,25 -28,28l28 28 0 -13c7,0 11,1 17,-2 6,-2 23,-21 30,-27z"/>
</g>
</svg>
- 非常欢迎任何其他可能有用的提示/技巧。
【问题讨论】: