jQuery MiniUI

标题: 水印问题 [打印本页]

作者: danishlyy    时间: 2018-7-25 14:28:24     标题: 水印问题

想在mini-datagrid查询结果画面添加一个水印,用了canvas元素 H5  但是放在任何位置  水印都不显示在datagrid上,而且有点地方还影响查询操作  点击按钮没有反应
  1.     var angle = 35;
  2.             var ctx = document.getElementById("cv").getContext("2d");
  3.             ctx.fillStyle = "#aa0000";
  4.             ctx.beginPath();

  5.             // 绘制水印
  6.             ctx.font = "20px microsoft yahei";
  7.             ctx.fillStyle = "rgba(255,255,255,0.5)";
  8.             ctx.fillStyle = "red";
  9.             ctx.rotate(angle * Math.PI / 180);
  10.             ctx.fillText("张三 市妇幼 张三 市妇幼 张三 市妇幼", 200, 200);

  11.             ctx.closePath();

  12.         }

  13.         window.onload = test;
复制代码



作者: felt    时间: 2018-7-25 15:27:14

这canvans和我们的表格有什么关系?
作者: felt    时间: 2018-7-25 17:27:24

[attach]11158[/attach][attach]11157[/attach]
如图,这和我们MiniUI是没关系。







欢迎光临 jQuery MiniUI (http://miniui.com/discuss/) Powered by Discuz! X2