赶紧下班 2015-09-05 08:27 采纳率: 0%
浏览 2714

svg在html和jsp页面中展示的问题

svg画一个带有箭头的直线,在html中展示没有问题,但是再jsp页面中无法展示线的箭头。
svg的编码如下:

 <svg id="ext-gen1019">
    <defs>
        <marker id="arrow1" viewBox="0 0 6 6" refX="5" refY="3" markerUnits="strokeWidth" markerWidth="6" markerHeight="6" orient="auto">
            <path d="M 0 0 L 6 3 L 0 6 z" fill="#15428B" stroke-width="0"></path>
        </marker>
        <marker id="arrow2" viewBox="0 0 6 6" refX="5" refY="3" markerUnits="strokeWidth" markerWidth="6" markerHeight="6" orient="auto">
            <path d="M 0 0 L 6 3 L 0 6 z" fill="#ff3300" stroke-width="0"></path>
        </marker>
        <marker id="arrow3" viewBox="0 0 6 6" refX="5" refY="3" markerUnits="strokeWidth" markerWidth="6" markerHeight="6" orient="auto">
            <path d="M 0 0 L 6 3 L 0 6 z" fill="#ff3300" stroke-width="0"></path>
        </marker>
    </defs>
    <g from="100,100" to="300,300">
        <path d="M 100 100 L 200 200" stroke-width="1.4" stroke-linecap="round" fill="none" stroke="#ff3300" marker-end="url(#arrow2)" marker-mid="url(#arrow2)"></path>
    </g>
</svg>
  • 写回答

1条回答 默认 最新

  • devmiao 2015-09-05 14:04
    关注
    评论

报告相同问题?

悬赏问题

  • ¥15 电力市场出清matlab yalmip kkt 双层优化问题
  • ¥30 ros小车路径规划实现不了,如何解决?(操作系统-ubuntu)
  • ¥20 matlab yalmip kkt 双层优化问题
  • ¥15 如何在3D高斯飞溅的渲染的场景中获得一个可控的旋转物体
  • ¥88 实在没有想法,需要个思路
  • ¥15 MATLAB报错输入参数太多
  • ¥15 python中合并修改日期相同的CSV文件并按照修改日期的名字命名文件
  • ¥15 有赏,i卡绘世画不出
  • ¥15 如何用stata画出文献中常见的安慰剂检验图
  • ¥15 c语言链表结构体数据插入