rockllee 2017-07-13 06:22 采纳率: 100%
浏览 1573
已采纳

怎么为用CSS画好的三角形填充颜色

{"css":{
"font":{"family":"宋体","style":0,"size":18},
"color":{"r":0,"g":0,"b":255,"a":255},
"fill-color":{"r":125,"g":125,"b":125,"a":255},
"stroke":{"width":3}
},
bitmap:{
"basex":375,
"basey":0,
"width":100,
"height":100,
"graphs":[
{

    "type":"com.taijue.gis.core.style.PolylineGraph",
    "coordinates":[{"x":255,"y":0},{"x":435,"y":125},{"x":435,"y":-85},{"x":255,"y":0}],
   }]
}

}

  • 写回答

2条回答

  • 张大教主 2017-07-13 06:52
    关注
    建议用H5 SVG 来画图,直接在html文件可使用:参考:http://www.w3school.com.cn/svg/svg_polygon.asp
    <svg width="700" height="100" >
    <polygon points="0,0 0,100 120,100" style="fill:blue; stroke:pink;stroke-width:5"/>
    <polygon points="150,0 200,0 250,50 200,100 150,100 100,50" style="fill:blue; stroke:pink;stroke-width:5"/>
    </svg>
    <ul>
    <li>points 属性定义多边形每个角的 x 和 y 坐标
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3
  • ¥15 用matlab 设计一个不动点迭代法求解非线性方程组的代码
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler
  • ¥15 oracle集群安装出bug
  • ¥15 关于#python#的问题:自动化测试