【发布时间】:2015-11-10 02:28:49
【问题描述】:
我希望那里的人可能会遇到这种奇怪的 svg 线性渐变填充行为,它没有显示。完全适用于标准浏览器。作为描边的其他属性按预期工作,但不是填充!该元素似乎是透明的。
我实际上发现与 SVG 元素放置在同一页面上的 jquery 数据表可能会有副作用。
<svg viewBox="0 12.705 512 486.59" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" height="20" width="20" style="margin-right: 0px;">
<defs>
<linearGradient y2="0%" x2="100%" y1="0%" x1="0%" id="jRate_grad1">
<stop stop-color="white" offset="0%"/>
<stop stop-color="yellow" offset="100%"/>
</linearGradient>
</defs>
<polygon points="256.814,12.705 317.205,198.566 512.631,198.566 354.529,313.435 414.918,499.295 256.814,384.427 98.713,499.295 159.102,313.435 1,198.566 196.426,198.566 " style="fill: url(#jRate_grad1);stroke:black;fill-opacity:1;stroke-width:2px;"/>
</svg>
svg 代码由 jquery 评分插件jRate 生成。
可以在here 找到重现“错误”的测试站点设置。 SVG 元素是表格列“Bewertung”中的那些小十字符号。
【问题讨论】:
-
交换两个停止元素
标签: jquery css svg datatables